如何使用动态报告在iReport中动态增加列宽? [英] How to increase the column width dynamically in iReport using dynamic report?

查看:218
本文介绍了如何使用动态报告在iReport中动态增加列宽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个jrxml文件并使用动态报告我填写了模板的数据。我需要根据里面的内容调整列宽,我查看了文档和博客一切导致拉伸溢出但是它只会增加高度并包装数据。

I have created a jrxml file and by using dynamic reports I am filling up the data for the template.I need to adjust the column width based on the content inside it,I have looked into documentation and blogs everything leads to stretch overflow.But it will only increase the height and wrap the data .

我的场景我需要根据内容调整列的宽度。是否可能?是否可以使用 DynamicReports 来实现?如果是这样的话?

My scenario I need to adjust the width of the column based on the content.Is it possible anyway? Is it possible to do it by using DynamicReports? If so how?

推荐答案

在jasper报告中,您无法动态增加组件的宽度。您只能动态增加高度。

In jasper reports, you cannot increase the width of the component dynamically. You can only increase the height dynamically.

这篇关于如何使用动态报告在iReport中动态增加列宽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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