문제

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?

도움이 되었습니까?

해결책

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

JasperReportBuilder.setPageFormat(200, 500, PageOrientation.PORTRAIT);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top