Printing Data fields in Page Heading

Stimulsoft Reports.NET discussion
Post Reply
Kenneth Jonsson
Posts: 9
Joined: Wed Jun 13, 2007 7:20 am
Location: Sweden

Printing Data fields in Page Heading

Post by Kenneth Jonsson »

Hi,
I have a report where data fields printed in the page heading is wrong on the first output page; else it is correct.
The fields belong to a data table also being referred on an first index page of the report, therefore I issue a Reset Data Source on report page two to make the data band print each record starting with the first.
However, the fields in the page heading on output page one referres to a later record, output page two etc are all correct.

Is there a way to make the page heading print *after* the data table is reset to the first record? Even though the data table is printed once on the index page of the report.

Regards,
Kenneth Jonsson,
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Printing Data fields in Page Heading

Post by Vital »

Hello Kenneth,

You can use following expression to get first row from datasource:

Code: Select all

MyDataSource.GetData("MyColumnName", 0);

Thank you.
Kenneth Jonsson
Posts: 9
Joined: Wed Jun 13, 2007 7:20 am
Location: Sweden

Printing Data fields in Page Heading

Post by Kenneth Jonsson »

Vital,

Please advice me some more; where would I issue the expression? Is it a way to reset the data source to first row? I am not explicitly interested in the first record, other than that I expect the header band to print information related to the data band on the same page as the header.

Regards,
Kenneth Jonsson
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Printing Data fields in Page Heading

Post by Edward »

Here is some more suggestions for you:

Reset the Current positon of the DataSource:

DataSource.First();

It can be done automatically by the DataBand:

DataBand.ResetDataSource = true; property can help with it.

As for the Header band, then try to set PrintOnAllPages property of it in true.

Thank you.
Post Reply