问题
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