Page 1 of 1

HTML Text Not Display Properly in JS Viewer

Posted: Tue Mar 06, 2018 3:10 am
by Togo
Hi,

I am trying to show some HTML text on the report.

When view in the Flash Viewer, it is showing correctly with font colors, line breaks and background color.
FlashViewer
FlashViewer
ScreenHunter 07.png (1.46 KiB) Viewed 1415 times
But when viewer in HTML Viewer, font colors and line breaks cannot be shown. Only the background color is still there.
HTMLViewer
HTMLViewer
ScreenHunter 08.png (1.59 KiB) Viewed 1415 times
The HTML code for the text are as follows:
<p align="left"><font color="#ff6666"><font style="background-color: rgb(255, 255, 255);">TESTING LINE 1</font></font></p>
<p align="left"><font color="#ff6666" style="background-color: rgb(255, 255, 0);">TESTING LINE 2</font></p>

May I know the above issue can be fixed in HTML Viewer or not? Thank you very much.

Re: HTML Text Not Display Properly in JS Viewer

Posted: Wed Mar 07, 2018 5:50 am
by Edward
Hi Togo,

For great compatibility between different technologies as well as for providing good export results, we removed the 'block' type tags rendering, such as <p> and <div>, so they are not supported at the moment.

At the moment only a very limited range of HTML tags are supported.
Please check the list of supported HTML tags and their usage here: https://www.stimulsoft.com/en/documenta ... l_tags.htm
And there are some more details on the reasons behind of that is here:
viewtopic.php?f=13&t=55897&start=10

Thank you,
Edward