WPF - 查看和 RDLC 报告文件

发布于 2024-08-14 16:34:27 字数 241 浏览 4 评论 0原文

我有一个广泛的 WPF 应用程序,现在我想合并一些报告。我了解如何使用 RDLC 创建报告,但是查看它们怎么样?理想情况下,我想使用 DocumentViewer,但我不认为这是受支持的文件类型之一。有些文章建议使用 ReportViewer,但我的 IDE (VS Pro 2008) 中没有将其作为控件。

有没有办法将 RDLC“转换”为 XPS,然后使用 DocumentViewer 或者 WPF 应用程序查看 RDLC 报告的最佳方法是什么?

I have an extensive WPF application and I now want to incorporate some reports. I understand how to create the reports with RDLC but what about viewing them? Ideally, I'd like to use the DocumentViewer but I don't think that's one of the supported file types. Some articles have suggested using the ReportViewer, but I do not have that as a control in my IDE (VS Pro 2008).

Is there a way to "convert" RDLC to XPS and then use the DocumentViewer or what is the best way for a WPF application to view an RDLC report?

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

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

发布评论

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

评论(2

你对谁都笑 2024-08-21 16:34:27

MicrosoftReportViewer 控件是一个 Windows 窗体控件。您可以使用 WindowsFormsHost 控件在 WPF 中“托管”报表查看器控件,如 记录在此处

The MicrosoftReportViewer control is a Windows Forms control. You can use the WindowsFormsHost control to "host" the report viewer control in WPF, as documented here.

不寐倦长更 2024-08-21 16:34:27

查看 codeplex 上的开源 .NET WPF 报告引擎

Take a look at the Open-Source .NET WPF Reporting Engine on codeplex

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