Jump to content

nacnhu

Members
  • Posts

    4
  • Joined

  • Last visited

nacnhu's Achievements

  1. 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
  2. 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
  3. 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:jasperPrint = JasperFillManager.fillReport("PublicitiesStatistics.jasper", jasperParameter, connection);// exporting process// 1- export to PDFJasperExportManager.exportReportToPdfFile(jasperPrint, "C://sample_report.pdf");// 2- export to HTMLJasperExportManager.exportReportToHtmlFile(jasperPrint, "C://sample_report.html" );// 3- export to XHTML????????
  4. 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
×
×
  • Create New...