# Monday, July 20, 2009

ReportViewer in VS2010

I’ve been using the ReportViewer control in Visual Studio quite a bit to create RDLC (offline) reports that are based on the result of LINQ queries against object trees. It’s been a while since there has been a new release of this control and Visual Studio 2010 did not include anything major with regards to the ReportViewer control. I asked around and got an email from Robert Bruckner answering my two main questions:

1. Yes, the ReportViewer control in VS2010 will run on both .NET 3.5 as well as .NET 4.0.
2. Yes, the ReportViewer control in VS2010 will support Export to Word for RDLC (offline) scenarios.

Thanks Robert (and the rest of the people working on this technology), great news!

#    Comments [8] |
Sunday, July 26, 2009 12:03:45 AM (Eastern Daylight Time, UTC-04:00)
Any word on whether the Report Viewer Control in VS2010 will run in Medium Trust? I understand that the control that shipped with .NET Framework 3.5 SP1 relies on unmanaged code to function, which is not permitted in medium trust.
JWolthuis
Monday, July 27, 2009 12:55:59 PM (Eastern Daylight Time, UTC-04:00)
Answer from Robert:

As you are probably aware, the report viewer has a local mode and a remote mode.
In remote mode, it works with medium trust.
In local mode, it requires full trust.

Kind regards,
Mark
Monday, July 27, 2009 2:00:34 PM (Eastern Daylight Time, UTC-04:00)
Thanks for the reply.

Local Mode == .rdlc client-side files == Does not support Partial Trust, does not require SQL Server Reporting Services.
Remote Mode == .rld server-based files only (requires server running IIS and SSRS) == partial trust, since all heavy lifting is done by SSRS.
JWolthuis
Monday, July 27, 2009 2:26:57 PM (Eastern Daylight Time, UTC-04:00)
Correct :-)
Friday, August 07, 2009 4:45:58 PM (Eastern Daylight Time, UTC-04:00)
Will the ReportViewer control work in mediumTrust/Remote Mode in VS 2008? Or is this something new in VS 2010?
Marie Ramos
Friday, August 07, 2009 4:48:45 PM (Eastern Daylight Time, UTC-04:00)
I think it will in VS2008 too.

Kind regards,
Mark
Friday, August 28, 2009 12:12:05 PM (Eastern Daylight Time, UTC-04:00)
To use Viewer Control in medium trust / VS2008, does it require SQL 2008? We spent weeks working with Microsoft trying to get Viewer Control working in medium trust with VS2005 / SQL 2005, and they told us it would definitely not work.
Any recommendations on where to find code samples for remote mode / medium trust?
Thanks.
Marie Ramos
Sunday, August 30, 2009 1:03:46 PM (Eastern Daylight Time, UTC-04:00)
Correct. It uses medium trust when using SQL Server 2008. It requires full trust when running in local mode.

Kind regards,
Mark
Comments are closed.