Save/Export not working correctly (Allow Html Tags)

Stimulsoft Reports.JAVA discussion
Post Reply
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Save/Export not working correctly (Allow Html Tags)

Post 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
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

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

Post 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.
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

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

Post by rafaelwithoeft »

Which are the supported tags html?

Thank you
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

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

Post 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
Post Reply