Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reporting Services export to Excel with Multiple Worksheets

I'm currently building a MS Reporting Services Report that gets rendered to excel. I'm trying to figure out how to set up the report so that it creates multiple Worksheets (Tabs) of the data on the report. I understand that entering a page break in the report gives you a new worksheet, however, is there a way to name each tab instead of it default to (worksheet 1, worksheet 2) etc.

Anyone know how this is done?

Thanks in advance!

like image 561
DotNetJayHawk Avatar asked Jan 20 '09 20:01

DotNetJayHawk


People also ask

How do I export SSRS reports from multiple tabs to Excel?

To do that, go to the properties of the groups from the following option. In the Page Breaks option, choose the Between each instance of a group as shown in the below image. Now we need to provide the sheet name for when exporting to the Multiple sheets of Excel in SSRS.

How do you export Excel with multiple sheets?

By default, Excel will only export the active worksheet. If you have multiple worksheets and want to save all of them in the same PDF file, click Options in the Save As dialog box. The Options dialog box will appear. Select Entire workbook, then click OK.

How do you name worksheets when exporting SSRS reports to Excel?

You can dynamically assign sheet names. To assign sheets name select the Details Row under Row Groups and go to the properties by pressing the F4 key, it will open a Properties window. Look for "Group" in the properties window and expand it so you can see "PageName".


Video Answer


1 Answers

To late for the original asker of the question, but with SQL Server 2008 R2 this is now possible:

Set the property "Pagebreak" on the tablix or table or other element to force a new tab, and then set the property "Pagename" on both the element before the pagebreak and the element after the pagebreak. These names will appear on the tabs when the report is exported to Excel.

Read about it here: http://technet.microsoft.com/en-us/library/dd255278.aspx

like image 59
T.J.Kjaer Avatar answered Sep 21 '22 21:09

T.J.Kjaer