在 JasperReports 中设置文本字段的样式
我知道如何将内联样式应用于 JasperReports 中的静态文本。可以对文本元素(文本字段)执行同样的操作吗?如果是,怎么办?
I know how to apply inline style to Static Text in JasperReports. Can the same be done for Text Elements (text fields)? If yes, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以为
textField
元素应用样式。iReport 使用
报表模板示例:
引用 iReport Ultimate Guide 关于
markup
属性:使用
标记
的示例位于此处。您可以使用
style
进行设置:另一个示例位于此处。
使用DynamicJasper API
如果使用 DynamicJasper API,您可以在 ar.com.fdvs.dj.domain.builders.ColumnBuilder 类:
示例位于此处。
JasperReports API 使用
如果使用JasperReports API,您可以设置样式,例如,在net.sf.jasperreports.engine.base .JRBasePrintText 类:
示例位于此处。
Yes, you can apply style for
textField
elements.iReport using
The sample of report's template:
The quote from iReport Ultimate Guide about
markup
attribute:The sample of using
markup
is here.You can use
style
for setting:The another sample is here.
DynamicJasper API using
In case using DynamicJasper API you can set style with help of ar.com.fdvs.dj.domain.builders.ColumnBuilder class:
The sample is here.
JasperReports API using
In case using JasperReports API you can set style, for example, with help of net.sf.jasperreports.engine.base .JRBasePrintText class:
The sample is here.