【发布时间】:2019-10-31 19:08:24
【问题描述】:
SSRS 渲染存在一个已知问题,即在渲染 PDF 时会发送 Content-Disposition: attachment; ... 标头,这会强制文件下载而不是内联打开 (here's an SO thread about it from 2009)。
我想知道是否可以通过在 SSRS 中使用 Rendering Extension 在浏览器中打开 PDF。我在 C# 中找到了一个示例渲染扩展,在这里: https://blogs.technet.microsoft.com/johannh/2017/07/14/creating-and-debugging-a-ssrs-custom-rendering-extension/
但是,该代码似乎只输出一个流。是否可以在发送流之前以某种方式发送标头,从而覆盖通常发送的 Content-Disposition 标头?
【问题讨论】:
标签: c# reporting-services ssrs-2017