Displaying Header on all pages of report

Chris Dale

New Member
Hello!
I am trying to display this “For Period 11/2/01 To 2/2/02” on the header of all the pages of a report. This is min and max of the entire data. I have done the following steps

>Declared two global variable MinDate and MaxDate in the topmost report component

>Two controls in the after section of the entire report to capture the min and the max date. In the finish method of these controls I have the following code:

Sub Finish()

Super::Finish()
MinDate = DataValue
DataValue = “”
End Sub

Note I have tried putting the code MinDate = DataValue before calling the Super::Finish Class and had the same result
>In the ValueExp of the text control: MinDate(DateValue([ssCreated])) Overall
>In the Report Header I have a text control that has a ValueExp: SRVPROD::MinDate
When I run the report
Only the last page of the report has the MinDate and MaxDate Displayed on the header.

I was hoping that on the first pass the two variables would be populated with the Min and Max date information respectively. In the second pass, the variable would be used to display this information in the required report section, such as the report header.

Please also note I am using a memorydatasorter to archive a dynamic sort.

Please can you help ASAP


Thanks
Chris
 
Top