Skip to content
Advertisement

Tag: jasper-reports

Jasper report exporting to text results in java.lang.OutOfMemoryError: Java heap space

Currently I am using jasper v 3.7.4 While exporting to any other format (csv,xls,pdf) from the same dataset – I have has no issues. Exporting to text throws: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3236) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118) Here is my code: I am also using a virtualizer as jasperPrint parameter But it does not help, and also the following warning is

Jasper report blank page

My jrxml and java code below . I am trying to create report with some text and values . However blank report is generated . I am pasing map to fill the report as parameter . I have to add 4-5 static lines and then one dynamic variable . I have added these thing in detailed band .whats wrong Java

How to change Jasper report Print name

When I send the jasper report to print, the printer shows the document name as “jasper report-report name” (When there is a printing que, document name is also “jasper report” ). How can I change it to another name? Answer Using JasperReports API If you are using JasperReports API you should set report name with help of JasperPrint.setName(java.lang.String name) method.

Advertisement