Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS - Changing tab name when exporting to excel

I have tabbed my report in SSRS 2012 by having my page breaks based upon grouping classname and it works great. How do I change the tab names when exporting to Excel? I tried having an expression for page name =Fields!classname.Value. In doing so, it makes all 4 of my tabs equal the first page break of Sales Division.

My tabs are based upon the grouping of classname, which in returns gives me the 4 tabs: Sales Division, VRS, ClearCaptions, and IP-relay.

like image 363
user3798811 Avatar asked Jul 14 '14 20:07

user3798811


People also ask

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

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". Assign the data field which will be used for sheet names.

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 I change the name of an Excel sheet in SSRS 2008?

In SSRS you can change the worksheet name to do so please follow the below steps. Go to the Row groups -> Click on the detail group -> go to detail group properties -> expand group in the properties -> Go to Page name then mention the worksheet name there. If you still have any questions, please feel free to ask.


1 Answers

You need to set the PageName of the Tablix Member (group), NOT the PageName of the Tablix itselfs.
If you got the right object, if will say "Tablix Member" (Tablix-Element in German) in the title box of the properties grid. If it's the wrong object, it will say only "table/tablix" (without member).
Also, be advised to set the sort order of the group expression, so the tabs are alphabetically sorted.

If you get the tablix instead of the tablix member, it will put the same tab name in every tab, followed by a (tabNum). That is exactly your current problem.

Tablix Member

MultiTabExcelFile

like image 159
Stefan Steiger Avatar answered Oct 14 '22 13:10

Stefan Steiger