Hide export format in RDLC/SSRS Report Viewer control(ahmedelbaz.com)

submitted by AhmedElbazAhmedElbaz(90) 2 years ago

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 comment |category: |Views: 50

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by sandasanda(1) 1 year, 5 months ago 0

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.

Reply

information Login or create an account to comment on this story