简体   繁体   English

Jasper Reports导出到PDF文本字段不换行

[英]Jasper Reports export to PDF text field not wrapping

I am using iReport 5.0.4. 我正在使用iReport 5.0.4。 I have a report with a text field that is set up as "Fix Relative to Top" and stretch type "Relative to Tallest Object". 我有一个带有文本字段的报告,该文本字段设置为“相对于顶部固定”,并且拉伸类型为“相对于最高对象”。 The "Stretch with Overflow" is also set. 还设置了“带有溢出的拉伸”。 This combination is used throughout my reports and seems to work correctly. 我的报告中都使用了这种组合,并且似乎可以正常使用。

Today, a user reported that one of the fields is being truncated, and not wrapping. 今天,一位用户报告说其中一个字段已被截断,而不是自动换行。 When I initially ran the report against the same production database from iReport, it behaves correctly, ie, it wraps. 当我最初从iReport对同一生产数据库运行报表时,它的行为正确,即自动换行。 But when running on our production Tomcat server (hosted on RHEL 6), the same report truncates that field (it is the city "WEST MELBOURNE"... in the former it wraps, in the latter instance it simply prints "WEST"). 但是,当在我们的生产Tomcat服务器(在RHEL 6上托管)上运行时,该报告将截断该字段(它是城市“ WEST MELBOURNE” ...前者将其包装,后者则仅打印“ WEST”) 。

I have Googled and tried a couple of suggestions, such as the suggested net.sf.jasperreports.export.pdf.force.linebreak.policy but it does not change the behavior. 我已经Google搜索并尝试了一些建议,例如建议的net.sf.jasperreports.export.pdf.force.linebreak.policy,但它不会改变行为。

Another item is that I use the same font, Sans Serif 8, throughout, and it wraps properly elsewhere. 另一个问题是,我始终使用相同的字体Sans Serif 8,并将其正确包装在其他位置。

Does anyone have another suggestion? 有人有其他建议吗?

Thanks, 谢谢,

Mitch 米奇

选中所选文本字段的“溢出溢出”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM