Working with HTML
This section explains how to use HTML in the Report Designer.
Using HTML in static text elements
When you add/edit a static text element the Report Designer displays the HTML Editor dialog. In this dialog you can enter plain text, but you can also use the HTML Editor features to embed HTML tags into the text to modify parts of it - for example, you can assign different foreground color, different background color or different font to different parts of the text (see below):
You can embed tag expressions into such text, just like it is done for regular text.
HTML blocks
The example above uses simple HTML formatting, but you can also use big HTML blocks inside the Report Designer. Most likely the HTML will be copied from outside of the Report Designer. In order to use this code inside the HTML Editor, click on the </> icon in the toolbar of HTML Editor (it is the last icon on the right) and paste the HTML code into the popup up dialog. Then click OK and HTML will be displayed in the HTML editor as shown below:
You can embed tag expressions into HTML blocks as well.
HTML and dynamic text
HTML support is probably the most useful when it is used with dynamic text elements. If you have an object with an attribute of the Plain Text type with and HTML Content type, you can define a tag expression that points to this attribute like so
<<SomeObject.HtmlAttribute>>
. Then at runtime the report will be automatically populated with the HTML content of the attribute.
HTML Rendering
Note that there are some limitations on the structure of the HTML if the report with HTML is exported in the PDF format. AwareIM supports two “rendering engines” - an engine based on the Jasper Reports “markup” attribute and the engine that is implemented using the OpenPDF library. The former supports a smaller range of HTML tags but fully respects paging - if the text is big, it is correctly split between pages. The latter engine supports a broader range of HTML tags, but if the text is big and spans across multiple pages, paging is not respected. The differences are summarized in the table below:
A rendering engine can be set for individual static and dynamic text elements. So if you know that a dynamic text could be big you will set the “markup” rendering engine to the corresponding text element. Selection of a rendering engine is available as a property of the static or dynamic text element.




