ireport 4.0.1中报告的动态宽度 [英] Dynamic width for report in ireport 4.0.1

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

问题描述

我在ireport4.0.1中设计了一个交叉表报告。因为交叉表我不知道报告的宽度。是否有根据其中包含的数据设置宽度的选项?

I have designed a cross tab report in ireport4.0.1. because of cross tab i dont know the width for the report. Is there any option to set width according to the data it contains?

推荐答案

我的答案可能不是jaspersoft推荐的答案伙计们,
,但我要做的是在运行时计算所需的宽度。

Well my answer may not be the recommended one by jaspersoft guys, but what i would do is calculate the required width at run time.

然后将值放在我的报告的宽度选项中JRXML基本上只是一个XML(使用标准文件操作)。

then put the value in the width option of the report that is in my JRXML which is basically nothing but an XML (using standard file operations).

然后我将编译它以获取jasper并在需要时填充jasper。

Then i ll compile it to get jasper and fill the jasper as and when required.

对我而言,这是目前唯一可行的选择。
PS:Alex是对的你应该考虑在他们帮助你的时候接受答案.. !!!

To me this is the only option which is possible as of now. PS: Alex is right u should consider accepting answers when they help you..!!!

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

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