Jump to content

XHTML render or export


nacnhu

Recommended Posts

Hello! I have been using the Jasper for a few days now. I was able to export PDF and HTML documents in java. However i do not know how to export the document to get a XHTML report.

 

Thanks in advance,

Nanchu

Code:


Post Edited by nacnhu at 01/03/2010 19:29
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I found the way. Here it is how to export a report in XHTML format java

jasperPrint = JasperFillManager.fillReport("PublicitiesStatistics.jasper", jasperParameter, connection);

JRXhtmlExporter xhtmlExporter = new JRXhtmlExporter();

xhtmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
xhtmlExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,"C://sample_report2.html " );
xhtmlExporter.exportReport();

 

Hope it helps somebody,

Nanchu

Link to comment
Share on other sites

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