The "Text" object can understand some simple HTML tags. The text that the label can reside in the object. By default, labels are disabled, to enable these HTML tags, you can select the "Allow HTML tags" option in the object context menu, or you can enable the label properties of "Allowhtmltags" in the object inspector. The "Text" object supports the following tags:
<b>-Bold text
<i>-Italic text
<u>-Underline text
<sub>-Subscript
<sup>-Superscript
<font color>-Font Color
<nowrap>-Prevent text in cells from wrapping automatically
Although the "Text" object of Fastreport for Com/activex does not support many HTML tags, it is sufficient to meet the needs of most applications. Changing the font size and name is not allowed, otherwise fastreport for Com/activex text rendering units can become very complex.
The following example shows how to use these HTML 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 was a usual text, <font Color=red>and This is a red one</font>
This was a usual text, <font color= "#FF8030" >and this was an orange one</font>
This site is reproduced in addition to the article, are the original site or translation
Welcome to any form of reprint, but please be sure to indicate the source, respect for the results of others ' work
Reprint Please specify: Article reprinted from: Fastreport control Chinese web [http://www.fastreportcn.com/]
Fastreport the HTML tags in the "Text" object and uses the