• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 441
  • Last Modified:

Reporting Services Page Header Value

I'm trying to pull a value from a table in the body of a report into the page header. The table is not the driving table and disappears after the first page is printed so our current header reference is not getting a value.
0
joevi
Asked:
joevi
  • 3
  • 2
1 Solution
 
Megan BrooksSQL Server ConsultantCommented:
You can pull data from a different dataset using aggregate functions like First() and Last(). If you can either include the information in the main dataset or pull it from the other dataset or a special one that you create just for this purpose then you can do it. If you are using SSRS 2008, you can reference the data(set) from a page header. With SSRS 2005, it might be harder but I think it can still be done.
I don't know a trick for just doing this in one step (maybe someone else does), but you should be able to get the information with the right dataset query.
What version of SSRS are you using? Is the data in the two table data regions related? If so, how? What exactly needs to go into the page header? Can you include it as a field in the main dataset?
(SSRS 2008 R2 may offer a simple solution using writable report variables, when it is released, but that probably doesn't help.)
0
 
joeviAuthor Commented:
0
 
Megan BrooksSQL Server ConsultantCommented:
You are using SSRS 2005, then? SSRS 2008 tends to drop the Code instance when moving to a new page, and anything you have stored there is lost. Not a problem unless/until you migrate.
0
 
joeviAuthor Commented:
0
 
joeviAuthor Commented:
Problem solved
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now