Jump to content

Recommended Posts

Posted

Hi All,

I am generating a report with data html string. This data is coming from Blob column. I tried couple of options to render HTML string in report and generate PDF.

Note: Our requirement is that User will copy data from work or excel (data containing tables, bullets, etc) and copy them in rich text editor in web application. The rich text editor provides input as HTML on server side which is then stored in Oracle DB as Blob column. Now this data should be displayed in report and PDF as well.

A) 1st option: I used stream reader to read the data from Blob column to collect in separate field and bind this field to HTML component in report. The preview is happening correctly, but the when PDF is generated the data is getting displayed as image. But I would need the data to be displayed as text in PDF and not as image. 

Query 1: Is there any property setting for dispalying data as text in PDF instead of image?

B) 2nd Option: I used stream reader to read the data from Blob column to collect in separate field and bind this field to HTML Text box component in report. I have set the one of the property value to "markup". However the result is that HTML data is not getting displayed correct in the preview. It seems html data parsing is not happening for all the HTML tags. Am I missing something here.

Query2: How to handle HTML input data in reports so that data is displayed correctly for valid html?

Query3: DoesJasper display XHTML data correctly for all the tags?

Verson: Jasper reports 5.1.0. Also tested on Vesrion 5.6.x

C) 3rd Option: We tried to explore HTML to PDF conversion tools as well. But this also has limitations.

Query4: Jasper reports 5.1.0 internally uses iText 2.1.7 version? Can I used higher version of iText instead of default one bundled with Jasper reports 5.1.0? I would to know if anyone has tried this. I am doudbtful if this will resolve the problem because this depends on HTML parsing capability of iText.

Regards,
Sudhakar

 

 

 

 

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...