Jump to content
We've recently updated our Privacy Statement, available here ×

uhkudale

Members
  • Posts

    5
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by uhkudale

  1. Thanks for reply. The session is not getting disconnected. But from optimization point of view, can we introduce pagination for HTML? From jasper side, the pagination is enabled, but is there any way to bring the data in chunks from jasper to HTML?
  2. Hi, I am using IE10, IE11 for exporting a huge jasper report (around 50MB of .jrprint file). Since my application is only supported on IE browser, I don't have an option of trying it out on any other browser. My Jasperreport version is 5.5.2. Here is my JSP code snippet for HTML export: [/code]File reportFile = new File("<<Path to the jrprint file already created on server using virtualizer>>");String swapFilePath = "<<path to some temporary folder on server>>"; JRSwapFile swapFile = new JRSwapFile(swapFilePath, 4096, 100);JRSwapFileVirtualizer virtualizer = new JRSwapFileVirtualizer(50, swapFile, true);JasperPrint jasperPrint = (JasperPrint) net.sf.jasperreports.engine.util.JRLoader.loadJasperPrint(reportFile, virtualizer);net.sf.jasperreports.engine.export.JRHtmlExporter exporter = new net.sf.jasperreports.engine.export.JRHtmlExporter(); response.resetBuffer(); session.setAttribute(net.sf.jasperreports.j2ee.servlets.ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); // JSP output writerexporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, " ");exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.TRUE);exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "../../jasperimages.123?image=");exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD, Boolean.TRUE);exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT, JRHtmlExporterParameter.SIZE_UNIT_PIXEL); exporter.exportReport();Note that I have used virtualizer while creating .jrprint (report fill process) as well as while exporting it to html. Since the HTML output would be huge, I can't store it into some intermediate object on server otherwise it would go out ouf memory. Hence I am directly giving JSPWriter out object as OUTPUT_WRITER. When a huge report is exported (having 1000+ pages), everything works fine on server side (no OutOfMemory) but my browser crashes. I know that the response it getting written into chunks and I have enough RAM on client side, then what can I do to avoid browser crash? How can I get optimum performance for HTML export? Is there is size limit for HTML export? Please give me some pointers. Thanks in advance.
  3. Hi, I am using jasperreports-5.5.2. I have configured JRParameter.IS_IGNORE_PAGINATION as TRUE. When I export the report to PDF, I am getting correct ouput with say few hundreds of records. But, when I export to PDF and there are like thousands of record, I get output as blank PDF. I don't get any error in the background. Not even OutOfMemoryError. Now, if I turn JRParameter.IS_IGNORE_PAGINATION as FALSE, I can export thousands of records successfully into PDF. Can somebody please tell me what can be a problem? Here is the snippet of code used for exporting PDF. ByteArrayOutputStream baos = new ByteArrayOutputStream(); net.sf.jasperreports.engine.JasperPrint jasperPrint = (net.sf.jasperreports.engine.JasperPrint)net.sf.jasperreports.engine.util.JRLoader.loadObject(reportFile); net.sf.jasperreports.engine.export.JRPdfExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter(); exporter.setParameter(net.sf.jasperreports.engine.JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(net.sf.jasperreports.engine.JRExporterParameter.OUTPUT_STREAM, baos); exporter.exportReport();[/code] Thanks in advance.
  4. Hi, I have created a jasper font extension jar to be distributed along with our product. The jar contains font files(.ttf) of Arial and Tahoma. Do I need to purchase a license for shipping them as jasper extension? These are MS fonts and are copyrighted.
×
×
  • Create New...