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

teodord

Members
  • Posts

    5,346
  • Joined

  • Last visited

  • Days Won

    1

 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 teodord

  1. Hi, Do you mean you have an enhanced custom data source able to fetch records in multiple steps (data pagination) in order to minimize memory consumption? If you do, that's good. Maybe you could lower the number of records read in a fetch operation to see if this helps. 5000 records at a time might be too much, depending on the size of the records. If you have used a virtualizer, then the problem might not be related to JasperReports itself, but rather to the way the XLS exporting libraries work. They seem to store the generated XLS document in-memory, even we then save it into a file or send it to an output stream. So we optimized memory consumption in JasperReports by using a report virtualizer, but we cannot do the same for the exporters, because we rely on third-party libraries such as POI or JExcelAPI which do not seem to have similar mechanisms. And then a third issue. It depends on how you deliver the XLS content to the browser, assuming you are in a Web application. Some browsers need to know the length of the binary content they receive beforehand and this is why our XLS servlets output first to an in-memory byte array output stream, just to be able to measure the resulting document and only after that they output to the response output stream. Fortunately, there is a parameter available to turn this kind of buffering off and save up memory. I hope this helps. Teodor
  2. Hi, Are you experiencing these problems in a particular export format? Have you tried see the report output in the JRViewer (Swing viewer)? You could take a look at our /demo/samples/unicode sample provided with the project source files, where there is a text displaying Hebrew. I hope this helps. Teodor
  3. Hi, What you need is shown in our /demo/samples/webapp sample provided with the project distribution files. There is a "Page by Page" viewer for HTML. The total number of pages for a JasperPrint document can be obtained by calling Code: jasperPrint.getPages().size() I hope this helps. Teodor
  4. Hi, In our project distribution package we have a sample showing how the text exporter works inside the /demo/samples/text folder. I hope this helps. Teodor
×
×
  • Create New...