Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get named excel sheets while exporting from SSRS

Whenever a single page report is exported to excel, sheet in excel is named by the report name. If a report has multiple pages, the sheets are named as sheet1, sheet2,.... Is there any way to specify sheet names in SSRS 2005 ?

solution: Found this after some googleing: Changing the Sheet names in SQL Server RS Excel: QnD XSLT

Will try out and post an update if it works.

like image 281
rao Avatar asked Apr 10 '09 07:04

rao


People also ask

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".

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

Necromancing, just in case all the links go dark:

  1. Add a group to your report
    Also, be advised to set the sort order of the group expression here, so the tabs will be alphabetically sorted (or however you want it sorted).

    1. Add a group to your report

    • 'Zeilengruppe' means 'Target group'
    • 'Gruppeneigenschaften' means 'Group properties'
  2. Set the page break in the group properties 2. Set the page break in the group properties

    • 'Seitenumbruche' means 'Page break'
    • 'Zwischen den einzelnen Instanzen einer Gruppe' means 'Between the individual instances of a group'
  3. Now 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) in the property grid's title box.

  4. Note: If you get the tablix instead of the tablix member, it will put the same tab name in every tab, followed by a (tabNum)! If that happens, you now know what the problem is. Tablix Member

MultiTabExcelFile

like image 105
Stefan Steiger Avatar answered Oct 01 '22 20:10

Stefan Steiger