Use Explicit Worksheet Names when an SSRS 08 RDL Renders in Excel

主宰稳场 提交于 2019-12-25 01:59:52

问题


My SQL Reporting Service 2008 .rdl file contains a subreport within a rectangle with a forced page-break before it. When it renders in Excel it defines a page break as a worksheet break so it creates the subreport content in a separate worksheet of the Excel Workbook .xls file. How can I name each worksheet? I do not want them to be Sheet1 and Sheet2.


回答1:


You can set the "PageName" property on an object e.g. a rectangle

http://blogs.msdn.com/b/robertbruckner/archive/2010/05/16/report-design-naming-excel-worksheets.aspx

Edit: This property is only available for SQL Server 2008 R2 and later versions. If you have SQL Server 2005 or 2008, then it is not possible to name the worksheets.



来源:https://stackoverflow.com/questions/15484690/use-explicit-worksheet-names-when-an-ssrs-08-rdl-renders-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!