Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print Jasper Report without pages

I'm creating HTML (popup window), EXCEL and PDF report and would like to show my reports on one page. This report is not going to be used for printing, so there is no need separate my report into pages. Plus later users would like to use Buildin Excel sorting.

Is there an option to ignore pages?

like image 323
Maksim Avatar asked Nov 20 '09 16:11

Maksim


1 Answers

Toggle pagination during report filling. For example, Excel or HTML output should not be paginated. Sample code:

parameters.put(JRParameter.IS_IGNORE_PAGINATION, true);
JasperPrint print = JasperFillManager.fillReport(report, parameters, data);
like image 69
Jukka Avatar answered Sep 20 '22 21:09

Jukka