ASP.Net SSRS Report Viewer 9.0 and Report Viewer 10.0 Side-By-Side
We are rolling out a large deployment of SQL Server Reporting Services Reports and our platform is SQL Server 2005 so our Report Server is version 2005 running in Native mode. Our web application uses server reports rendered in the Report Viewer 9.0 control. We want to开发者_如何转开发 be able to use local reports based on the 2008 RDL spec to create some dashboard applications. We also would like to use the new report viewer 10.0 to viewer these reports.
Is there a way to run these both Side-By-Side in the same project? If so how would we go about that? Create a custom server control?
Install both versions in the GAC.
Register both versions on the page using:
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb10" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb9" %>
and finally use the controls like this <rsweb10:ReportViewer />
and <rsweb9:ReportViewer />
精彩评论