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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have no experience with this tool

Status
Not open for further replies.

alebaez

Programmer
Jan 23, 2002
5
PY
I have no experience with this tool. So i don´t know if this is possible to do.
I need to print a report with a structure like this:
HEADER
DETAIL
TOTAL OF DETAIL
my problem is that if the detail is cutted by the end of the page I have to print a subtotal of the detail (the part that is shown) at the end of the page and at the begining of the next page. Would be like this:
HEADER
DETAIL
SUB TOTAL
--end of page
--begin of page
SUB TOTAL
DETAIL
TOTAL OF DETAIL
but if the detail fits in a singlepage should be like this
--begin of page
HEADER
DETAIL
DETAIL
TOTAL OF DETAIL
--end of page

Thanks.





 
What version of Cr are you using? This will work with CR6 and above...

You can do what you want with variables.
Formula in the Page Header..
and Page footer ...and Report Footer
WhilePrintingRecords;
numbervar detailsum;

Conditionally suppress the last Page Footer with
OnLastRecord

Formula in the Details - Suppress Printing
WhilePrintingRecords;
numbervar detailsum:=detailsum + {table.field};

Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top