How can I use SSRS ReportViewer from VS 2008 in VS2010 project?

I am working on an ASP.NET MVC 2 / .NET 3.5 project that includes SSRS 2008 reports. After upgrading to VS 2010 RC, the new web form report viewer is so worried that I want to use the old report viewer from VS 2008 again. Now I'm just wondering what would be the easiest way to do this.

The report viewer is embedded in the ASPX Webforms file, which is loaded into the IFrame according to the MVC view. Report parameters are currently stored as session variables, and for security reasons, I would prefer not to change this for HTTP POST or GET parameters. Therefore, I can’t just put the report viewer in a separate application and build it using VS2008.

Transferring the entire project to VS 2008 is not an option.

So what is the easiest way to use VS 2008 ReportViewer in VS 2010? Is there a way to capture an assembly from VS 2008 and use it in my project?

Thank,

Adrian

Edit: The problems that arise with the ReportViewer VS2010 version are related to AJAX requests. For example, AsyncRendering = True does not load the report and using the paging controls or the reset button does not work either . The export button works fine, but that's because it is not related to AJAX requests.

If you have an idea how I can fix this, I would rather keep a new report viewer. It’s just that I already asked about it on SO , on social.msdn.com and on MS Connect and haven’t found an answer yet.

+3
2

, . , , , . , , Microsoft API, ?

  • API- , VS 2008, VS 2010, 2010 ( 10.0) Microsoft. ReportViewer.WebForms . , 2008 ( 9.0). , , 10 9.

:

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

web.config :

<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

web.config :

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

web.config :

<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
  • , 2010 . , - , , .

  • , VS2008 2008 . 2010 . , .

Microsoft Connect , RTM Visual Studio 2010 (, , ).

+4

, Report Viewer, :  AsyncRendering ,

AsyncRendering ASP.Net ReportViewer ReportViewer. . , . , , , , , . Visual Studio 2010, . , , .

AsyncRendering

HTML - , - . , , . ReportViewer , . HTML . , . , " ", , - . - AsyncRendering = true.

, , . , , , . , . , , . AsyncRendering = false.

Visual Studio 2005 2008

HTML, . ReportViewer ASP.Net AJAX. HTML . ReportViewer . , , -.

AsyncRendering. :

, , . , ASP.Net, , , . , , ReportError . , , . ( ), . , , IE. , . , SizeToReportContent . , , , . , . , , .

Visual Studio 2010

ASP.Net ReportViewer VS 2010 , ASP.Net AJAX. . , ASP.Net. VS 2010 , , HTML, , , , .

AsyncRendering . . SizeToReportContent. , , , . - , HTML Firefox Safari, ( !) .

VS 2010 AsyncRendering - , ASP.Net, .

+3

Source: https://habr.com/ru/post/1737121/


All Articles