使用 Pentaho 报表设计器打印报表时页面丢失
我正在使用 Report-designer 3.6.1,并且我的一份报表反复出现问题。
当我打印报告时,有时会出现缺页的情况。该报告打印九页中的七页,最后一页显示页数为 7/9。同样在最后一页上,页脚丢失,就好像未配置一样。
这个问题是随机发生的(或者以我无法掌握的特定模式发生)。所有其他报告都很好。他们都打印页脚和所有页面。
如果您需要更多信息请发表评论,我会尽我所知做出回应,因为我是这个工具的新手。
以下是我们如何设置报告
主报告:
- 页眉
- 每页上打印的一些字段;
- 详细信息
- 子报告#1:列出每个产品的所有属性;
- 报告页脚
- 空
- 页脚
- 一些文本字段;
- 页数(totalPageCount 函数);
子报告#1:
- 组标题:空;
- 详情
- 列标题;
- 子报告 #2:列出每个产品的一些属性值;
- 组页脚
- 报表页脚
- 包含消息的文本字段。
子报告#2:
- 详细信息
- 属性名称;
- 报告页脚:属性值;
I'm using Report-designer 3.6.1, and I encountered a recurring problem with one of my reports.
When I print the report, sometimes the result is missing pages. The report prints seven pages out of nine, the last page displaying a page count of 7/9. Also on the last page, the footer is missing as if it were not configured.
This problem happens randomly (or in a particular pattern that I can't grasp). All other reports are fine. They all print the footer, and all the pages.
If you need more info leave comments, I will try to respond to the best of my knowledge, because I am new with this tool.
Here is how we setup the report
Master report:
- Page header
- Some fields that are printed on each page;
- Details
- Sub-report #1: List all attributes of each product;
- Report Footer
- Empty
- Page Footer
- Some text fields;
- Page count (totalPageCount function);
Sub-report #1:
- Group Header: Empty;
- Detail
- Collumn headers;
- Sub-report #2: List some attribute values for each product;
- Group Footer
- Report Footer
- Text field with a message.
Sub-report #2:
- Detail
- Attribute's name;
- Report Footer: Attribute's value;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。
来源:我发现我的子报告 #2 可能与子报告 #1 的标题列重叠。
解决方案:我将子报表 #2 向下移动了大约 10 像素,这样它就不再重叠了。
之后,报告打印出所有必要的页面。
Problem resolved.
Source: I found out that my sub-report #2 was probably overlapping the header's columns from the Sub-report #1.
Solution: I moved the Sub-report #2 down by approximately 10px, so that it doesn't overlap anymore.
After that, the report printed out with all the necessary pages.