Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2004, 01:51 PM
Authorized User
 
Join Date: Jul 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report 9.0 Page numbering

Hi

I have a report which is grouped on a column. I need to start each group on a new page and I have to reset page number on start of a new group. Finally I have to capture the number of groups created and the no. of pages per group on the front page followed by group details on the next page.

Suppose 3 groups get created , Gr1 has 3 pages, Gr2 has 4 pages , Gr3 has 1 page

Front Page will have

Gr1 : 3
Gr2 : 4
Gr3 : 1

This page will be followed by the details of each group.

I use a formula field which has a shared array to capture the total page no. created per group on change of each group. I set this at the Group footer

something like this:

shared numberVar array PageCount;
shared numberVar PTCount;
PageCount[PTCount]:=TotalPageCount;
PTCount:=PTCount + 1;

Then I use another formula field on the front page which returns the page no for a given group.

WhilePrintingRecords;
shared numberVar array PageCount;
PageCount[RecordNumber];

But the problem here is , when front page is being printed array wouldn't have been populated and hence prints as 0. How do I make the formula field in the front page evaluate in the end after all the groups are created and their total page nos. are captured in the array. Some thing like EvaluateAfter.

Your help is highly appreciated.

Regards

RJN





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Numbering in Report View anukagni Access 7 March 7th, 2006 07:34 AM
Page numbering athanatos XSLT 4 May 13th, 2005 06:12 PM
Report Page numbering leehambly Access 1 March 17th, 2005 05:33 AM
Page numbering in crystal report 9.0 rajeshnerenki Crystal Reports 2 December 10th, 2004 11:29 AM
Numbering in Access Report mateenmohd Access 5 April 3rd, 2004 11:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.