Page 1 of 1

Printing Data fields in Page Heading

Posted: Mon Apr 21, 2008 7:29 am
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,

Printing Data fields in Page Heading

Posted: Mon Apr 21, 2008 7:57 am
by Vital
Hello Kenneth,

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

Code: Select all

MyDataSource.GetData("MyColumnName", 0);

Thank you.

Printing Data fields in Page Heading

Posted: Tue Apr 29, 2008 3:12 am
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

Printing Data fields in Page Heading

Posted: Tue Apr 29, 2008 4:31 pm
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.