Fields in Page Header


03-05-2010, 12:17 PM
I have an issue with a data field in the page header.  For one of our reports we allow users to select a few columns to be displayed in the report.  In creating the report we generate a concatenated string of the names of the columns selected and assign it to a page header field and the values for the selected fields display in the detail area.  Everything shows up as expected on the first page of the report, but if the report goes beyond one page, the page header field does not retain it's value on any page after the first.  I've tried making the field apart of the report datasource...that didn't work.  In addition, I've tried specifically setting the value of that field in the header in various page header events to no avail as well.  Any suggestions on how to accomplish this would be appreciated. 

Thanks, Lisa

Re: Fields in Page Header


03-07-2010, 10:18 PM
Hello,

How you are setting the DataFields for the columns in the PageHeader? Could you please provide me the code?

I would also like to inform you that the Page Header section is not intended to be used with controls bound to DataFields. It is for static text/images/etc use only. If you bind controls to a DataField in the Page Header section we can not guarantee that the data will be correct. But you can simulate the pageheader by using a groupheader which contains the bounded controls and set the “RepeatStyle” property of the groupheader to ‘OnPageIncludeNoDetail’. This will repeat the data on every page like a pageheader.

Regards,
Ankit Nigam