Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matching report header/footer

Status
Not open for further replies.

dduva

Programmer
May 16, 2001
38
US
I have six detail records that I want printed at the top of a report and the same six records I would like to repeat at the bottom of the report. In between these records I would like to print an entirely different set of detail records. Is this possible?

Is it possible to have mulitple detail bands? Or is it possible to have a footer mimic a header?

Thanks.
 
Place the six detail records in variables. Put the variables on the report.
 
How would I apply a specific record to a specific variable?

Specific fields to variables I understand, but how would I realate a whole record to a variable and then the next record to the next variable?

Thanks.
 
HI dduva,

***************************************************
1. In the header .. insert a field with expression GETMYHEADER()

2. Create a public myArray && create this before the report is run.

3. 2. Add a routine GETMYHEADER at right place of your code with following code.
COPY NEXT 6 TO ARRAY myArray && will copy six records

4. In your report use the array variables and print the report header and the footer.

Hope this idea works for you :)
ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Thanks ramani. That was a good idea. Worked very well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top