无论如何将 RDL 报告内容加载到 WPF FlowDocument 或类似文件中?
我想知道是否有人创建了 RDL 报告(在 Reporting Services 中运行),并将其加载到 FlowDocument 等 WPF 组件中。
由于 RDL 只是一个 XML,因此也许有一种方法可以解析结果并避免使用此 WindowsFormsHost 来使用报表查看器控件。
如果在 WindowsFormsHost 集成中拥有另一个控件而不是此报表查看器,那就太好了。
谢谢你!
I would like to know if someone have created a RDL report (running it in Reporting Services), and loaded it into a WPF component like FlowDocument.
Since RDL is just a XML, perhaps there's a way to parse the result and avoid using this WindowsFormsHost in order to use the Report viewer control.
Would be really nice to have another control rather than this Report Viewer within WindowsFormsHost integration.
thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RDL是XML,但是非常复杂的XML。您想要的基本上是用 WPF 重写的 ReportViewer。根本不是一个小任务。
我想到的一件事是直接从服务器请求报告并捕获返回的 HTML,并将该 HTML 嵌入到可以呈现它的 WPF 控件中。但我从来没有尝试过。
一般来说,到目前为止,还没有一个很好的混合Reporting Services和WPF/Silverlight的解决方案。
RDL is XML, but very complicated XML. What you want is basically the ReportViewer rewritten in WPF. Not a small task at all.
One thing that springs to mind is requesting the report directly from the server and capturing the returned HTML, and embedding that HTML in a WPF control that can render it. But I've never tried that.
Generally speaking, so far, there is not a good solution for mixing Reporting Services and WPF/Silverlight.