Hide export format in RDLC/SSRS Report Viewer control

added by AhmedElbaz
5/10/2010 12:29:52 AM

0 Kicks, 267 Views

Unfortunately, ReportViewer control has no method or property to manage specific format’s visibility and this is true also for the recently released Report Viewer 10.


1 comments

sanda
11/26/2010 12:03:23 PM
Great article. worked like a charm.

some thought may be helpful to others:

I called the class this way:
ReportViewerExtensions.SetExportFormatVisibility(reportviewer1, ReportViewerExtensions.ReportViewerExportFormat.Excel, false);

and the line of code has to be put after reportviewer1.reset(); and before reportviewer1.refresh() to work.