我想到了。在 rsreportserver.config 中,找到此元素:
<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
该元素内部是一个用于添加排除文件类型的元素。只需添加所有支持的文件类型,然后附件选项就会被有效禁用。
<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>
最后,重新启动 SQL Server Reporting Services 服务。
期望的最终结果: