Fastreport the HTML tags in the "Text" object and uses the

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.