Using MS ReportViewer in WPF

Yes, that works, I am using the WindowsFormsHost in a wpf project to wrap the ReportViewer. In the ViewModel I am creating the WindowsFormsHost and the ReportViewer: WindowsFormsHost windowsFormsHost = new WindowsFormsHost(); reportViewer = new ReportViewer(); windowsFormsHost.Child = reportViewer; this.Viewer = windowsFormsHost and in the View I am using a ContentPresenter to display it, by … Read more

An error occurred during report processing. -RLDC reporting in ASP.NET MVC

Have you try like this after adding a TableAdapter? It is working perfectly for me. public FileResult Report(string id) { PersonTableAdapter ta = new PersonTableAdapter(); PersonDataSet ds = new PersonDataSet(); //for avoiding “Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.” error ds.Person.Clear(); ds.EnforceConstraints = false; ta.Fill(ds.Person, id); … Read more

SSRS 2008 R2 – SSRS 2012 – ReportViewer: Reports in Safari/Chrome but works fine in Firefox/Internet Explorer 8… why?

Ultimate solution (works in SSRS 2012 too!) Append the following script to “C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\js\ReportingServices.js” (on the SSRS Server): function pageLoad() { var element = document.getElementById(“ctl31_ctl10”); if (element) { element.style.overflow = “visible”; } } Actually I don’t know if the div’s name is always ctl31_ctl10: in my case it is (instead over SQL … Read more

SSRS 2008 R2 – SSRS 2012 – ReportViewer: Reports are blank in Safari and Chrome

Ultimate solution (works in SSRS 2012 too!) Append the following script to the following file (on the SSRS Server) C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\js\ReportingServices.js function pageLoad() { var element = document.getElementById(“ctl31_ctl10”); if (element) { element.style.overflow = “visible”; } } Note: As azzlak noted, the div’s name isn’t always ctl31_ctl10. For SQL 2012 tryctl32_ctl09 and for … Read more

How can I use a reportviewer control in an asp.net mvc 3 razor view?

The following solution works only for single page reports. Refer to comments for more details. ReportViewer is a server control and thus can not be used within a razor view. However you can add a ASPX view page, view user control or traditional web form that containing a ReportViewer into the application. You will need … Read more