Reports are One of the most common need in any reporting tools is to be able to export/save the report in a different format. Reporting Services offers various exporting options like Excel, PDF etc. Often times few reports are suitable for exporting to a particular format and does not fit perfectly in other formats. Example: A huge report with some 50 fields is most suitable to be exported to Excel and will not fit into other formats like PDF/Word etc.
Following are the formats supported by SQL Server Reporting Services:
XML file with report data
CSV (comma delimited)
PDF file
MHTML (web archive)
Excel
TIFF file
Word
Often business users like formats like Excel, PDF etc. and do not want the other exporting formats to be available/displayed in the pull down menu for choosing an exporting format in the Report Manager.
We can control the list of exporting options available for the users using the “Rsreportserver.config” file. Here is how we can do it.Let us say we need to remove the “Word” option from the drop down for exporting option.Now go to the SQL Server/SSRS Installation directory and locate “rsreportserver.config” file. In my case it is located in the path: “C:\Program Files\Microsoft SQL Server\MSRS12.MSBISP2013\Reporting Services\ReportServer “.
Open the “rsreportserver.config” file with notepad and locate “<render></render>” tag for exporting to Word for example is as follows:
<Extension Name="Word" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.WordRendering" Visible="True"/>
Now I need to hide the export word option again open the rsreportserver.config file with notepad and locate “<render>” tag. Set the Word Rendering" Visible="False"/>
Ex: <Extension Name="Word" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.WordRendering" Visible="False"/>
Now the export Word option not show under the drop down.
When we opent the “rsreportserver.config” file with notepad and locate “<render>” tag it shows below
<Render>
<Extension Name="XMLl" Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering" />
<Extension Name="NULL" Type="Microsoft.ReportingServices.Rendering.NullRenderer.NullReport,Microsoft.ReportingServices.NullRendering" Visible="false" />
<Extension Name="CSV"
Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering" />
<Extension Name="ATOM"
Type="Microsoft.ReportingServices.Rendering.DataRenderer.AtomDataReport,Microsoft.ReportingServices.DataRendering" Visible="false" />
<Extension Name="PDF" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering"
Visible="true" />
<Extension Name="RGDI" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.RGDIRenderer,Microsoft.ReportingServices.ImageRendering" Visible="false" />
<Extension Name="HTML4.0" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="false">
<Configuration>
<DeviceInfo>
<DataVisualizationFitSizing>Approximate</DataVisualizationFitSizing>
</DeviceInfo>
</Configuration>
</Extension>
<Extension Name="MHTML" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering">
<Configuration>
<DeviceInfo>
<DataVisualizationFitSizing>Approximate</DataVisualizationFitSizing>
</DeviceInfo>
</Configuration>
</Extension>
<Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering" Visible="false" />
<Extension Name="EXCELOPENXML" Type="Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.ExcelOpenXmlRenderer,Microsoft.ReportingServices.ExcelRendering" />
<Extension Name="RPL" Type="Microsoft.ReportingServices.Rendering.RPLRendering.RPLRenderer,Microsoft.ReportingServices.RPLRendering" Visible="false" LogAllExecutionRequests="false" />
By: Mohan Punugoti