问题描述
有没有办法从SSRS报告中导出到excel,以便仅在excel导出中仅在报表的第一页上显示标题?目前,它在工作表的顶部添加了一个冻结帧。
Is there a way to export to excel from an SSRS report so that the header that displays on the first page of the report is omitted only in the excel export? Currently, it adds a frozen frame to the top of the worksheet.
推荐答案
更新
另请参阅我的答案
原始答案如下:
如果您可以获取Excel输出的URL(某些版本的SSRS会使浏览器显示),则可以附加一些代码:
If you can get the URL for the Excel output (some versions of SSRS leave the browser displaying it), you can append some code to the end:
&rc:SimplePageHeaders=True
这将删除标题。这是一个手动的黑客,派上用场,或者你可以将它添加到rsreportserver.config文件中。
This removes the header. This is a manual hack that comes in handy, or you can add it to the rsreportserver.config file
<Render>
<Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering">
<Configuration>
<DeviceInfo>
<SimplePageHeaders>True</SimplePageHeaders>
</DeviceInfo>
</Configuration>
</Extension>
</Render>
没有这个或 - 我没有使用任何一种产品,我只知道他们的存在。
Failing that there's Aspose.Cells or OfficeWriter - I haven't used either product, I just know of their existence.
或者对于真正的勇气,你可以
Or for the really brave, you can create your own custom renderer
这篇关于从SSRS导出到没有标题的Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!