Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 23rd, 2004, 01:51 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
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
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:48 PM.


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