子报表未打印
我尝试创建一个带有子报表的非常简单的报表。子报表单独创建并嵌入到数据组中。子报告分别给了我相关数据。另一个主要报告给了我预期的部分数据。但是嵌入子报表的位置的预期数据没有出现。它在输出中显示为空白。有人可以建议吗?
I tried to create a very simple report with a subreport. The subreport was created separately and was embedded in the data group. The subreport separately gives me the relevant data. and the other main report gives me the intended partial data. But the data intended in the place where the subreport has been embedded is not appearing. It is appearing as blank in the output. Can anybody advise ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能没有向子报告发送它需要生成的数据/参数。
You are probably not sending the sub report the data/parameters it needs to be generated.
也许子报表中没有您查询的数据?
默认情况下,在 ireport 中,当查询没有返回记录时,报表没有页面。
您可以设置 NoDataMessage,我在其他 question/post< 中概述了步骤/a>
maybe there is no data to your query in the subreport?
by default in ireport, a report has no page when the query returns no records.
you could setup a NoDataMessage, i have outline the steps in my other question/post
今天我在使用 ireport 3.0.0 和 Oracle JDBC 时遇到了同样的情况。
解决方法(kludge)是在主报告中设置查询:select * from Dual。
是的,我确实意识到这绝对不是正确的方法,但它帮助了我。似乎主(主)报告没有打开数据库连接,然后配置为使用相同连接的子报告没有找到任何东西!
希望它能帮助别人...
Today I had faced the same situation using ireport 3.0.0 and Oracle JDBC.
The work around (kludge) was to set at query at the master report: select * from dual.
Yeah, I do realize that definetely is not the right way, but it help me out. Seems that the master (main) report was not open the data base connection, then the subreport that was configured to use the same connection was not finding anything!
Hope that it help someone else...