Sometimes you might wish to export differently formatted text within a textbox. Unfortunately, Reporting Services does not support this possibility. However, you still can implement it using Aspose.Pdf for Reporting Services. Just enable a special mode when all text in textboxes will be treated as HTML and put necessary HTML tags to format the text in the output document. For example, to have normal, bold and italic text in the same textbox, enter the following textbox value:
Some of this text is <b>bold</b> and other text is <i>italic</i>.
When exported, the text will look like
Some of this text is bold and other text is italic.
Note however this approach has some limitations:
- The formatting isn’t visible in design time (in Report Builder, Report Manager etc). Instead, you will see the HTML text as is.
- Aspose.Pdf for Reporting Services rendering extension can understand and properly format HTML code in textboxes. The default PDF renderer of RS does not so.
Parameter Name: IsHtmlTagSupported
Date Type: Bollean
Values supported: True, False (default)
Example:
<Render>
…
<Extension Name="APPDF" Type=" Aspose.Pdf.ReportingServices.Renderer,Aspose.Pdf.ReportingServices ">
<Configuration>
<IsHtmlTagSupported >True</IsHtmlTagSupported >
</Configuration>
</Extension>
</Render>
If you want to set this parameter in Report Designer, the data type should be “Bollean”.
Currently Aspose.Pdf for Reporting Services does not support all of the HTML tags. Please get help from the link http://www.aspose.com/documentation/file-format-components/aspose.pdf-for-.net-and-java/working-with-text-containing-html-tags.html.