Reporting Services export to Excel with Multiple Worksheets

后端 未结 8 1892
无人共我
无人共我 2020-11-27 02:56

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

8条回答
  •  心在旅途
    2020-11-27 03:05

    I found a simple way around this in 2005. Here are my steps:

    1. Create a string parameter with values ‘Y’ and ‘N’ called ‘PageBreaks’.
    2. Add a group level above the group (value) which was used to split the data to the multiple sheets in Excel.
    3. Inserted into the first textbox field for this group, the expression for the ‘PageBreaks’ as such… =IIF(Parameters!PageBreaks.Value="Y",Fields!DISP_PROJECT.Value,"") Note: If the parameter =’Y’ then you will get the multiple sheets for each different value. Otherwise the field is NULL for every group record (which causes only one page break at the end).
    4. Change the visibility hidden value of the new grouping row to ‘True’.
    5. NOTE: When you do this it will also determine whether or not you have a page break in the view, but my users love it since they have the control.

提交回复
热议问题