Report Generator FastReport .Net User Guide: Display Data Columns, HTML Labels

FastReport .Net is a full-featured Windows Forms, ASP.NET and MVC report analysis solution. Using FastReport .NET can create .NET reports that are independent of applications. At the same time, FastReport .Net supports 14 languages ​​such as Chinese and English. You can make your products truly international.

FastReport.NET official version download (qun: 585577353) icon-default.png?t=N4P3https://www.evget.com/product/1861/download

In the previous article of the Fastreport User Manual, we shared "Display Expressions". This article mainly shares "Display Data Columns" and HTML tags, hoping to help you.

Show Data Columns

You can print columns of data via:

[Datasource name.Column name]

As you can see, square brackets are used here. Data source names and data column names are separated by periods. For example:
[Employees.FirstName]
has several methods to insert columns of data into the "text" object.

  • In the editor of the "Text" object, we manually write the names of the data columns. This method is the most inconvenient and error-prone.
  • In the object's editor, we select the desired data column and drag and drop it to the text:

Click the small button in the upper right corner of the object and select the data column from the list:

Drag and drop data columns from the Data window onto the report page. In this case, a "text" object is created containing a link to the column.

HTML tags

You can use some simple HTML tags in the "text" object. Tags are disabled by default; to enable it, go to the Properties window and set the "HtmlTags" property to true. Here is a list of supported tags:

Label describe
<b>...</b> Bold font.
<i>...</i> Italic text.
<u>...</u> Underlined text.
<strike>...</strike> Strikethrough text.
<child>...</child> subscript.
<sup>...</sup> Superscript.
<font color=...>...</font> font color. The color can be a specified color (such as DarkGray), or a hex code in #RGB format, such as #FF8030.

The following examples demonstrate how to use these tags.

text <b>bold text</b> <i>text in italic</i> <b><i>bold and in italic</b></i>
E = mc<sup>2</sup>
A<sub>1</sub> = B<sup>2</sup>
this is regular text, <font color=red>and this is a red one</font>
this is regular text, <font color=#FF8030>and this is an orange one</font>

This text will be displayed as follows:


This is the end  of this introduction to the "Display Data Column" and HTML tags in FastReport.Net  , click here to view more about the user guide ~

Guess you like

Origin blog.csdn.net/m0_67129275/article/details/131082726