JasperReports:pdf 项目打印在彼此之上而不是彼此并排
我正在使用 JasperReports 为客户生成 pdf 文件。由于某种原因,某些项目彼此堆叠在一起,而不是像预期那样并排打印。
这是我的报告的设计:
感谢任何帮助。
I'm using JasperReports to generate pdf files for customers. For some reason some items are stacking on top of each other instead of printing beside like they are supposed to.
Here is a design of my report:
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您已将“位置类型”设置为“相对于顶部固定”。将其更改为“浮动”。
编辑:我刚刚收到一份显示相同行为的示例报告。对我来说这看起来像是一个错误。在这种情况下,我通过附加空格获得了所需的输出。 “JG”会分成两行。但“JG”将呈现在一行上。我无法解释这一点。这显然是一个错误。但如果您遇到相同的行为,那么附加一个空格也可能会为您解决问题。
It sounds like you have the "Position Type" set to "Fix Relative to Top". Change it to "Float".
EDIT: I just received a sample report showing the same behavior. It looks like a bug to me. In that case I got the desired output by appending a space. "JG" would break into 2 lines. But "JG " would be rendered on a single line. I cannot explain this. It's clearly a bug. But if you are hitting the same behavior, then appending a space might solve it for you as well.