nacnhu Posted January 3, 2010 Share Posted January 3, 2010 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 More sharing options...
nacnhu Posted January 3, 2010 Author Share Posted January 3, 2010 I found the way. Here it is how to export a report in XHTML format javajasperPrint = 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now