Dynamic reports -set width and height of report

雨燕双飞 提交于 2019-12-13 02:49:52

问题


I want to print a report to a smaller paper size. Default seems to be A4, but I want to print in a paper size nearly half of A4.

How can we setthe width and height of the printed output in dynamic reports? Is it possible to set the height adjust to its contents automatically?


回答1:


I see that it is possible to set the output size using the following method,

    JasperReportBuilder.setPageFormat(200, 500, PageOrientation.PORTRAIT);


来源:https://stackoverflow.com/questions/22322129/dynamic-reports-set-width-and-height-of-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!