How to write code such as WhilePrintingRecords!
New DiscussionHello Sir,
I am creating a report which I already have created using Crystal Reports or MS Access Reports. I want to place a formula field on page header which will be “total_header” and one field on page footer which will be “total_footer”.
I want to show brought forward total on the header in “total_header” field in the header and carried forward total in “total_footer” field on the footer.
I used the following code in crystal reports in a formula field:
WhilePrintingRecords;
NumberVar total;
total := total + <fieldToTotal>;
The field with above mentioned code will be in details section and following code in both fields “total_header” and “total_footer”:
WhilePrintingRecords;
NumberVar total;
total := total;
It works in crystal reports but here If someone can tell me how to write these codes, that will be helpful.
Thanks