I need to disable the option to attach a report in an SSRS subscription in SQL 2016. The only option that should be available is to send the report URL.
I am curious how to perform the recommended method from MSDN to "configure the report server to send only a report server URL" found in this article https://msdn.microsoft.com/en-us/library/ms160334.aspx.
I tried excluding a render format in my rsreportserver.config like this, but it didn't seem to do anything.
<ExcludedRenderFormats>
<RenderingExtension>PDF</RenderingExtension>
</ExcludedRenderFormats>
I have a test SSRS 2016 environment installed using SSRS Native mode but if needed, I can uninstall and re-install if necessary with a non-default configuration.
I figured it out. In the rsreportserver.config, find this element:
<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
Inside of that element is an element to add excluded file types. Just add all the supported file types and then the attachment option is effectively disabled.
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
<RenderingExtension>PDF</RenderingExtension>
<RenderingExtension>MHTML</RenderingExtension>
<RenderingExtension>WORD</RenderingExtension>
<RenderingExtension>EXCEL</RenderingExtension>
<RenderingExtension>PPTX</RenderingExtension>
<RenderingExtension>IMAGE</RenderingExtension>
<RenderingExtension>WORDOPENXML</RenderingExtension>
<RenderingExtension>EXCELOPENXML</RenderingExtension>
<RenderingExtension>CSV</RenderingExtension>
<RenderingExtension>XML</RenderingExtension>
<RenderingExtension>ATOM</RenderingExtension>
<RenderingExtension>HTML4.0</RenderingExtension>
</ExcludedRenderFormats>
Finally, restart the SQL Server Reporting Services services.
Desired end result: