Standalone Report Designer
Search results
Suggest a FeaturePDF

Add HTML in to a report

The text box report item allows you to insert HTML-formatted text into a report. The text can be any simple or complex expression, or a value retrieved from a field in your dataset.

Format plain text as HTML

Drag and drop a textbox report item in to design surface.

Add textbox

Enter the text in valid HTML format into text area.

Enter valid html text

Select the text and set HTML in Markup Type property.

Set Markup Type

You can also format a dataset field which returns HTML text from database or an expression which evaluates to a text in HTML format using the markup property.

On report preview, the text will be rendered as shown below,

Markup type preview

Invalid HTML markup tags and cascading style sheet attributes will be ignored and render as plain text. Following are the few set of HTML tags and cascading style sheet attributes which will render as HTML when defined with HTML markup type,

  • Hyperlinks: <A HREF>

  • Fonts: <FONT>

  • Header, style and block elements: <H{n}>, <DIV>, <SPAN>,<P>, <DIV>, <LI>, <HN>

  • Text format: <B>, <I>, <U>, <S>

  • List handling: <UL>, <LI>

  • text-align, text-indent

  • font-family

  • font-size

  • color

  • padding, padding-bottom, padding-top, padding-right, padding-left

  • font-weight

Download the above report design from the link