Updating HTMLObject as a plugin for FastReport .NET

2024-07-26

Updating HTMLObject as a plugin for FastReport .NET

Our company regularly receives requests for changes in products. This time, we have improved the display of content in a report, which is stored in HTML markup format due to certain circumstances.

FastReport has a built-in object for visualizing content in HTML markup format—HTMLObject. It is still being improved, but it already solves many user problems.

The previous implementation of HTMLObject could not be divided into FastReport report objects and was displayed only in HTML export. Therefore, we released a separate plugin for FastReport .NET Ultimate that uses the division of the HTML DOM into FastReport report objects. Each HTML markup object is translated into FastReport objects with a specified style, with the calculation of the required sizes, and with the possible page break.

To use the plugin, you need to add the FastReport.Plugins.HtmlObject package to your project. Then register it using the following line of code:

FastReport.Plugins.Html.HtmlObjectAssemblyInitializer.Init()

After that, the necessary libraries will be automatically added to the project, based on the product used (FastReport .NET, FastReport.Core, FastReport.WPF, FastReport.Core.Skia). It's important to note that only a subset of HTML 4 tags and styles are supported. Scripts are not supported.

Supported tags:

<a> <center> <dt> <kbd> <q> <style> <title>
<address> <cite> <em> <li> <rb> <sub> <tr>
<area> <code> <footer> <main> <ruby> <sup> <u>
<article> <col> <h> <menu> <s> <table> <ul>
<b> <colgroup> <head> <menuitem> <samp> <tbody> <var>
<bdi> <data> <header> <meta> <section> <td> <wbr>
<bdo> <dd> <hgroup> <nav> <section> <template>  
<big> <del> <hr> <nobr> <small> <tfoot>  
<body> <dir> <html> <ol> <span> <th>  
<br> <div> <i> <p> <strike> <thead>  
<caption> <dl> <ins> <pre> <strong> <time>  

 

Report template in the designer

After initializing the plugin, it will replace the built-in HTMLObject with the new one. All previously built reports will automatically use the new implementation.

 

Report with HTML tags

 

The result can be saved in multiple export formats supported by FastReport (PDF, DOCX, etc.). The FastReport reporting engine is continuously evolving, and we are grateful to every user for their feedback and suggestions for improving our products.

.NET FastReport Plugin HTML
April 08, 2025

How to Set Up a Connection to Apache Ignite in FastReport .NET

In this article, we will explore how to configure a connection to Apache Ignite in FastReport .NET. You will learn the necessary steps to connect the plugin via code and the report designer.
April 08, 2025

Converter from Microsoft Word (.docx) format to FastReport .NET (.frx) file

A converter from Microsoft Word (.docx) format to a file FastReport .NET (.frx): description and instructions for using the tool.
March 25, 2025

How to Merge Multiple Reports into One in FastReport .NET

FastReport .NET is a powerful tool for creating and managing reports. In this article, we will look at how to combine multiple reports into one in FastReport .NET.
Fast Reports
  • 800-985-8986 (English, US)
  • +31 97 01025-8466 (English, EU)
  • +49 30 56837-3928 (German, DE)
  • +55 19 98147-8148 (Portuguese, BR)
  • info@fast-report.com
  • 66 Canal Center Plaza, Ste 505, Alexandria, VA 22314

© 1998-2025 Fast Reports Inc.