Page 1 of 1

Save/Export not working correctly (Allow Html Tags)

Posted: Thu Jun 25, 2015 12:43 pm
by rafaelwithoeft
Hello, I using the latest version and HTML version.
Save/Export, when i use bands with "Allow HTML Tags" they do not export correctly.
Samples:

Report viewer:
Image

Export HTML:
Image

Export PDF:
Image

Export IMAGE:
Image


Content rendered by header band:

Code: Select all

<div style="text-align: center;"><img alt="Teste" src="http://media.merchantcircle.com/20649169/Husky-Logo-100x100_full.gif" style="float:left; height:100px; width:100px" /><br />
<strong style="text-align:center"><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:22px"> XYZ XYZ XYZ </span></span></strong><br />
<span style="font-family:arial,helvetica,sans-serif">XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ XYZ </span></div>

The same occur in other bands, if use Allow Html Tags.

How i solve this problem?
Best Regards

Re: Save/Export not working correctly (Allow Html Tags)

Posted: Thu Jun 25, 2015 2:10 pm
by Andrew
Hello,

You are using a complex HTML text.
When the report is displayed in the viewer or exported to HTML, the HTML is displayed by means of a browser that works properly.
But when you export the report to other formats rendering of HTML goes with Java build-in core, which support only limited HTML tags.
So, unfortunately, we cannot do anything with this.

As a workaround, please split your complex text into separate components - text strings and images (Image component can display URLs).

Thank you.

Re: Save/Export not working correctly (Allow Html Tags)

Posted: Thu Jun 25, 2015 4:59 pm
by rafaelwithoeft
Which are the supported tags html?

Thank you

Re: Save/Export not working correctly (Allow Html Tags)

Posted: Fri Jun 26, 2015 6:16 am
by Vadim
Hello.
Supported tags depends on Java version, you can see in Java documentation HTML in Swing:
https://docs.oracle.com/javase/tutorial ... /html.html