Reporting Services - Group Name in Page Header

后端 未结 3 2140
暗喜
暗喜 2021-02-10 16:25

I have a report with one group (Office Name) which page breaks between each group - so the data for only one Office can appear on a given page. How do I get that Office Name t

3条回答
  •  [愿得一人]
    2021-02-10 16:44

    I am actually doing this in the footer and it worked! Thanks! Just wanted to add if you have multiple values you are trying to display in the header or footer, you can string them together with a delimiter in the pagename expression like

    =Fields!FIELD1.Value + "|" + Fields!FIELD2.Value + "|" + Fields!FIELD3.Value + "|" + Fields!FIELD4.Value
    

    Then you can create new fields (one for each value) and parse out each field like

    =(Split(Globals!PageName, "|")).GetValue(0)
    =(Split(Globals!PageName, "|")).GetValue(1)
    =(Split(Globals!PageName, "|")).GetValue(2)
    =(Split(Globals!PageName, "|")).GetValue(3) 
    

提交回复
热议问题