Jump to content
Changes to the Jaspersoft community edition download ×

Is the HTMLCOMPONENT threadsafe?


umair.hl

Recommended Posts

The html component seems to falter when multiple threads are generating PDFs with html content in them. There are random formatting errors which creep in - these are things like some text will be much larger than the rest, or boldened, or smaller, etc. Is this a known issue? Any workarounds?

I've tried to use the Text Field and set the markup to HTML, and that gets rid of these issues HOWEVER it limits how much styling can be applied. Simple things like tables for example can't be used.

Suggestions welcome.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

HTML component isn't officially supported by all of JasperReports products because it has some problems.

If you want tables, can't you just use the table component? There's also Custom Visualization component that can be used to generate SVG pages - I prefer using this.

 

Link to comment
Share on other sites

Hi hozawa

I'm hesitant to use other components because our system has been built to accomodate users editing HTML, and that HTML is then fed through to the HTML element while creating PDFs. Obviously this is failing at large scale - when we have multiple threads creating PDFs.

Do you know what the causes are behind why the htmlcomponent doesn't work? Any pointers if we wanted to fix it or build our own htmlcomponent? Other alternatives?

Thanks

Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...