Support for html tags in htmlObject and text objects

Hello, i'm trying to do some tests with HtmlObject and/or text objects with html tags. I've some fields in the report that have simple html tags (<table> and <ul> tags) and i'd like to export these fields in report preview and then in pdf format. Is this possible? It seems that in text object there is a basic support for tags while the HtmlObject cannot be exported in pdf format (only in a webpreview). Is this true? Will be added more support for html tags in the future? The support for some basic tags would be very beneficial.

Thanks.

Comments

  • Any help or comment on this?

  • Hello!

    Support for HTML tags (including <ul>, <li>, <table> and text formatting) is implemented in the latest versions via the HtmlObject (a full HTML renderer, which now also supports export to PDF) and HtmlParagraph (FastReport.HtmlParagraph, in versions 2026.x) objects.

    For simple formatting tags (<b>, <i>, <font>, <br>), set TextRenderType = TextRenderType.HtmlTags (or the deprecated HtmlTags = true) in a standard TextObject.

    For markup containing lists <ul> and tables <table>, use HtmlObject or HtmlParagraph; in FastReport.Core 2027.1.0 and FastReport.OpenSource, both objects are exported correctly to PDF.

This discussion has been closed.