开发者

WPF - view and RDLC report file

开发者 https://www.devze.com 2022-12-13 20:31 出处:网络
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 DocumentView

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 RDL开发者_如何学CC report?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号