动态报告 - 设置报告的宽度和高度 [英] Dynamic reports -set width and height of report

查看:126
本文介绍了动态报告 - 设置报告的宽度和高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将报告打印到较小的纸张尺寸。默认似乎是A4,但我希望打印的纸张尺寸接近A4的一半。

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);

这篇关于动态报告 - 设置报告的宽度和高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆