如何设置任何高度的jasper报告?

时间:2016-04-04 15:35:13

标签: jasper-reports

假设应该为热敏打印机生成一个jasper报告。细节带可以是1行或200+行。

如何生成jasper报告,其高度适合行数,而不是最后打印空格?

1 个答案:

答案 0 :(得分:2)

Set the pageHeight to just one row and then use

isIgnorePagination="true"

When isIgnorePagination is true the report will be generated in a single page.

Hence, if just one row, it will have the height of one row, if more rows it will not create new pages but generate a continues layout.

For example see: http://jasperreports.sourceforge.net/sample.reference/nopagebreak/