I have created a textField
in JasperReports
. Using Java how do i modify the textField
properties like width, postion etc?
我在JasperReports中创建了一个textField。使用Java如何修改textField属性,如width,postion等?
2 个解决方案
#1
You need to break down the design of your report template into parts which will be static (not as a static content but a static design) and the dynamic one.
您需要将报表模板的设计细分为静态的部分(不是静态内容,而是静态设计)和动态部分。
Use subreports to externalize static parts of the template.
使用子报表来外化模板的静态部分。
JasperReports allows dynamic creation of report templates. Compose final report template from existing subreports adding and modifying on the fly just the parts that are dynamic.
JasperReports允许动态创建报告模板。从现有子报表撰写最终报表模板,即时添加和修改动态部分。
#2
we can change the textfield properties dynamically through JRTextField class.... Refer http://jasperreports.sourceforge.net/api/index.html for API and its methods
我们可以通过JRTextField类动态更改文本域属性....请参阅http://jasperreports.sourceforge.net/api/index.html获取API及其方法
#1
You need to break down the design of your report template into parts which will be static (not as a static content but a static design) and the dynamic one.
您需要将报表模板的设计细分为静态的部分(不是静态内容,而是静态设计)和动态部分。
Use subreports to externalize static parts of the template.
使用子报表来外化模板的静态部分。
JasperReports allows dynamic creation of report templates. Compose final report template from existing subreports adding and modifying on the fly just the parts that are dynamic.
JasperReports允许动态创建报告模板。从现有子报表撰写最终报表模板,即时添加和修改动态部分。
#2
we can change the textfield properties dynamically through JRTextField class.... Refer http://jasperreports.sourceforge.net/api/index.html for API and its methods
我们可以通过JRTextField类动态更改文本域属性....请参阅http://jasperreports.sourceforge.net/api/index.html获取API及其方法