Click here to Skip to main content
12,998,759 members (68,713 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


4 bookmarked
Posted 8 Nov 2011

SSRS - Report Viewer - Hide PDF Export option

, 13 Nov 2011
Rate this:
Please Sign up or sign in to vote.
How to hide PDF Export option in Report Viewer


SQL Server Reporting Services eases designing of reports, whereas the Microsoft Report Viewer control is used to display .rdl/.rdlc reports in an ASP.NET website.

Moreover, the report viewer control provides various options in its toolbar. Of the different options, one option provides functionality for exporting the report in different formats (like XML, CSV, Word, Excel, PDF ...).

Now what if you want to exclude any/all of the above options?

Say, if I want to hide the PDF export option from the Report Viewer toolbar. Below are the steps to do:


Step - 1

Locate the file name "RSReportDesigner.config" at
"Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSReportDesigner.config".

Note: Location of the file varies in different version of SQL Server.

Step - 2

Disable the PDF export option - add the visible attribute with value false.

<extension name="PDF" 
   visible="false" />

Enable the PDF export option - remove the visible attribute.

<extension name="PDF" 
        Microsoft.ReportingServices.ImageRendering" />

Step - 3

After this, you need to restart your Report Server.


This can be applied to other exporting options too.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Chirag Vidani
Software Developer (Senior) Cygnet Infotech Pvt. Ltd.
India India
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralReason for my vote of 1 No code sample included. Pin
seldi10-Dec-11 6:21
memberseldi10-Dec-11 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170622.1 | Last Updated 13 Nov 2011
Article Copyright 2011 by Chirag Vidani
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid