Click here to Skip to main content
15,303,825 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
We have one report which shows the employee wise account details in a crosstab.

The problem we are facing is the output goes on multiple pages and the grand total appears only on last page.

Is there any method by which we can have a page wise running total on each page?

Any other solution with horizontal column grouping will also help...

I need to use CROSSTAB as the number of columns and rows is variable.......
Posted
Updated 24-Sep-12 4:13am
v2

there is an option in crystal report to add footer. on footer click left then u can see insert on top.select insert then you can see special field select that , on special fields you can see Page N of M.

'Page N of M' is a inbuilt function to show the number of pages like 'page 2 of 10'.
   
Comments
Member 10351824 28-Oct-13 7:13am
   
Thanks

its i nice code.

But if i want to one page total. How can i do?
vasim sajad 16-Nov-13 1:35am
   
i didn't get u what u meant
may help you...
Create a formula field TOTAL1 and edit this code:
C#
WhilePrintingRecords;
NumberVar total;
total := 0;

Place TOTAL1 in page header section.

Create a formula field TOTAL2 and edit this code:
C#
WhilePrintingRecords;
NumberVar total;
total := total + {field01};

where field01 is the field to summarize.

Place TOTAL2 in details section.

Create a formula field TOTAL3 and edit this code:
C#
WhilePrintingRecords;
NumberVar total;

Place TOTAL3 in page footer.
   
v3
Comments
rosyp 24-Sep-12 15:42pm
   
very nice
Thanks

its i nice code.

But if i want to one page total. How can i do?
   
if {Salary.NMonth}=1 then 0 else
if {Salary.NMonth}=2 then((i want bit here sum of previous month))
i want functions for it please help me
   
Comments
CHill60 15-Feb-21 10:26am
   
If you want to ask a question then use the red "Ask q question" link, don't post it as a "Solution"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900