Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

Put the subtotal at the end of records and not at the footer of last page

$
0
0
Hi?
I want create a report that seam like this

page1


Creating a Page Total in Crystal Reports
I created 3 formulas field called reset,accum,display



//reset formula1
WhilePrintingRecords;
shared numbervar total := 0

//accum formula2
WhilePrintingRecords;
shared numbervar total := total + {table.numberfield};



//display formula3
WhilePrintingRecords;
Shared numbervar total;
Total

I Placed the formula field reset in the page header and I "suppress" it
I Placed the formula field accum in the details section. and I “suppress” it.

I Placed the formula field display in the page footer.

the result is fine in all page but in the last page my total appear in the footer of page but me i want to appear in above the table

exemple

exemple1
id_field|column1|column2
1_______|10_____|20____
2_______|30_____|21____
___total=40

exemple2
id_field|column1|column2
1_______|10_____|20____
2_______|30_____|21____
.
.
.
.
.
.
.
.
.
.
.
___total=40

if my my last page have only two records
the gap between my table a my total is huge
what i want is to but the total in the last page directly above my table (exemple1)and not in the footer of page(example2)
thx in advance

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>