>Hi. I have to print a report wich is an invoice. But i have a problem with the last part of the paper, all the items data is shown in the detail section, but i have to print the totals, discounts, etc on an exact part of the paper (near the end), but not in the position thar the report manager sets as group footer. As additional info: i have a data group and have to make the calculations of that data i can't place in the correct place.
>
>Thanks
Put all your total fields in the Page Footer and put a "Print When" condition on them to determine whether or not to print them. Assuming that you have a "Group" based on the invoice number ... set a variable in the program that calls the report.
bEndofInvc = .f.
In the "On Entry" portion of the Group Header, call a procedure that sets bEndofInvc to .f. In the "On Exit" portion of the Group Footer, call a procedure that sets bEndofInvc to .t. Use "bEndofInvc" as the Print When condition in the Page Footer.
Cathy