Crystal report sum of n rows

Hi,
1, I want to generate a report for 100 records.
Now a page max should show 30 row and page report it should show sum of the amount colum of 30 row
In next page it should next 30 rows in footer it should show first row as forwared total page and then total(forwarded amount + this page toal) and the last page should show grand total.
How to achieve this.
2. how is printDocument different crystal report viewer
3. in crystal report how to supress linking of sub report, in sense currently if I click on the sub-report it goes to sub report rpt, i want to suppress this.
LVL 7
Maverick_CoolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Will you always show 30 rows if there are more than 30 records or might you show fewer records?

Try this idea
In the report header add a formula
WhilePrintingRecords;
Global NumberVar myRecordCount;
Global NumberVar myTotal;
myTotal := 0;
''

In the page header
WhilePrintingRecords;
Global NumberVar myRecordCount;
Global NumberVar myTotal;
myRecordCount := 0;
myTotal

In the detail section
WhilePrintingRecords;
Global NumberVar myRecordCount;
Global NumberVar myTotal;
myRecordCount := myRecordCount  + 1;
myTotal := myTotal  + {FieldtoTotal};
''

In the page footer
WhilePrintingRecords;
Global NumberVar myTotal;
myTotal

In the section expert
Click the detail section
Click the formula button to the right of NEW PAGE AFTER
WhilePrintingRecords;
Global NumberVar myRecordCount;
myRecordCount = 30

mlmcc
0
mlmccCommented:
PrintDocument is a method to print the report

To prevent drill into a subreport, the only real way is to put a transparent box over the subreport.  Thus the click will be in the box not the subreport

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.