Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以较小的纸张尺寸打印报告。默认似乎是 A4,但我想以接近 A4 一半的纸张尺寸打印。
我们如何在动态报告中设置打印输出的宽度和高度?是否可以自动将高度调整为其内容?
我看到可以使用以下方法设置输出大小:
JasperReportBuilder.setPageFormat(200, 500, PageOrientation.PORTRAIT);