开发者

ReportViewer 9 in .NET 4 application possible?

I am using ReportViewer 9 in WPF to talk to a remote SSRS server (because I have a SQL Server 2005 Reporting Services requirement) to add reports to a WPF .NET 4.0 application.

I can create a project and run ReportViewer 9 us开发者_JAVA技巧ing .NET 3.5, but I cannot (either from not being possible, or my lack or knowledge) get it to run within the WPF .NET 4.0 application. Ideally, I run the .NET 3.5 piece as a custom or user control within the 4.0 UI, but I am not making any progress with this.

Warning - The referenced assembly "Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NET Framework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

My next stop is to change the 4.0 application to 3.5, but I would rather not. Is there a trick to this, or am I chasing my tail on this?

Thanks, Brian


I was able to do this without any issues. The application is a .net 4.0 application (MVVM pattern) with a SQL Server 2008 backend. I utilized ReportViewer 9 and am running reports in remote mode using the .rdl. If you are interested in going back to .net 4.0 and I can be of assistance, let me know.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜