ReportViewer - LocalReport - 合并报告?

发布于 2024-07-06 01:03:13 字数 326 浏览 6 评论 0原文

我正在使用 ReportViewer WinForms,并且由于创建封面页并不简单,所以我想知道是否可以呈现两个报告并将它们连接起来?,以便它们显示为一个报告?

如果我只打印,那么我可以依次执行两个报告,但由于用户希望在打印之前查看报告(您知道,这里没有环境浪费),因此它们必须出现在同一个查看器中。

或者,还有其他方法来创建封面吗? 今天我使用了一个子报表,但是存在一些边距等问题,这不容易修复。

为了澄清,我们正在谈论 使用 RDLC 文件的 ReportViewer,否 涉及水晶报表。

I'm using ReportViewer WinForms, and since it is no easy way to create an coversheet, then I wonder, is it possible to render two reports and have them concatenated?, so they appear as one report?

If I was to print only, then I could execute two reports after each other, but since the user want to see the report before printing (you know, no environment waste here) then they have to appear in the same viewer.

OR, is there other ways of creating coversheets?
Today I use an subreport, but there are some issues with margins etc. which is not easy to fix.

To clarify, we are talking about
ReportViewer using RDLC files, no
Crystal Reports involved.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

恰似旧人归 2024-07-13 01:03:13

您是否需要在 reportViewer 控件中将 2 个报告显示为 1 个,或者将它们都导出为 PDF 并显示包含两个报告的单个 PDF 就足够了?

我一直在寻找,但使用 Web ReportViewer 并找到了将报告导出到多个 PDF 的示例,然后使用 PDFtk(免费)将 PDF 连接成 1

Do you need to display the 2 reports as 1 in the reportViewer control or would having them both exported to PDF and showing a single PDF containing both reports be satisfactory?

I was looking for that but using the Web ReportViewer and found examples exporting the reports to several PDFs, then concatenating the PDFs into 1 using PDFtk (free)

梨涡 2024-07-13 01:03:13

我创建了一个听起来像您正在尝试做的报告...首先澄清一下,我猜测您在 VS2005/2008 中使用 Crystal Reports。

如果是这种情况,您需要在主报告中做的就是在包含“封面”布局/数据的部分之后创建一个附加部分。 在“封面”部分的部分专家中(在布局视图中,右键单击部分标题栏,在弹出菜单中选择部分专家..),选中“之后新建页面”选项。

编辑:更新后,我发现您正在使用 RDLC 报告,并且从我对这些报告的有限了解来看,我不记得有什么简单的方法可以到达您想要的位置。 尽管我很确定您可以在代码中将多个报告传递给同一个报告查看器。

I've created a report that sounds like what you are attempting to do...first to clarify, I'm going to guess your using Crystal Reports within VS2005/2008.

If that's the case, all you need to do in the main report is create an additional section after your section that contains the "Cover Sheet" layout/data. In the section expert for the "Cover Sheet" section (in layout view, right click on section header bar, pick section expert in pop up menu..), check off the "New Page After" option.

Edit: After your update, I see you are using RDLC reports, and from my limited exposure to those, I can't recall an easy way to get to where you want to be. Though I'm pretty sure you may be able to pass multiple reports to the same report viewer in code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文