Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS - Disabling export options (eg. PDF) for individual reports

We have many reports which we use on the website. While exporting some reports as PDF, the file size gets huge and the server crashes due to load. So it would be great if I can disable export to PDF option only for certain problematic reports.

So is there a way to disable certain export options (example: export to PDF) in report viewer 9.0 (SSRS), for individual reports?

Thank you.

like image 229
user1449265 Avatar asked Apr 05 '13 10:04

user1449265


People also ask

How do I remove PDF option from export options in SSRS report?

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

How do I restrict access to SSRS reports?

You can prevent users from accessing My Reports by: Disabling My Reports on the Site Settings page. For more information, see Enable and Disable My Reports. Removing all tasks from the My Reports role.

What are the export options of SSRS?

Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Tiff file, MHTML (Web Archive), CSV (comma delimited) and XML file with report data are the popular formats that can be exported from SSRS as shown in the below screenshot.


1 Answers

Just in case nobody else said it out loud before here or in linked articles:

The neatiest global solution is to find the rendering engines in the RS config file (mine sits in: C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config), go to xml key: Extensions > Render and insert following property at the end of each entry you want to hide:

Visible="false"

Example:

<Extension Name="XML" Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering" Visible="false"/>

Alternatively put <!-- and --> (HTML comment markers) at the beginning and end of the entry.

For individual reports those functions will do the trick.

like image 83
Remigiusz Banaszak Avatar answered Sep 29 '22 02:09

Remigiusz Banaszak