如何设置任意高度的碧玉报告?

How to setup a jasper report with any length of height?

假设应该为热敏打印机生成一份 jasper 报告。详细信息带可以是 1 行或 200 多行。

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

pageHeight 设置为仅一行,然后使用

isIgnorePagination="true"

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

因此,如果只有一行,它将具有一行的高度,如果有更多行,它将不会创建新页面,而是生成一个连续的布局。

例如见:http://jasperreports.sourceforge.net/sample.reference/nopagebreak/