SSRS 2008 R2 Globals!RenderFormat export methods

后端 未结 3 1766
星月不相逢
星月不相逢 2021-01-14 13:28

There are 7 built in options for exporting SSRS 2008 reports.

I was wondering if there is an easier way to code the following in SSRS when chosing the export option:

3条回答
  •  自闭症患者
    2021-01-14 13:49

    The expression below, placed in the Column Visibility dialog box for a selected column, displays the column only when the report is exported to Excel; otherwise, the column is hidden.

    =IIF(Globals!RenderFormat.Name = "EXCELOPENXML" OR Globals!RenderFormat.Name = "EXCEL", false, true)
    

    This is mentioned in the MSDN itself. Hence it does work!

提交回复
热议问题