Solved

Need to pass the Page N of M from a subreport so that it will flow into the Main Report Body.

Posted on 2008-06-24
4
252 Views
Last Modified: 2010-04-21
I have a subreport inside of a main report and need to make sure the  pages flow correctly. The sub report starts in the Report header of the Main report. It usually only prints 1 or 2 pages but then goes into several pages processed in the main body of the report. How can I get the page numbers to flow correctly so that the total page count show up and prints correctly and the user does not see a break in the page numbering.
Also curiously does this hinder performace when running against larger databases.
Current Example
Subreport shows Page 1 of 1
Main Report shows Page 2 of 4
When scrolling through the pages.
What I need to see of course is Page 1 of 4 , Page 2 of 4, Page 3 of 4, Page 4 of 4 etc. Please help.
0
Comment
Question by:ruavol2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
crgary_tx earned 350 total points
ID: 21856856
Instead of placing your report in the report header, create a dummy group header to simulate the report header and place the subreport in the group header and supress the report header. Delete any pagenumbers you have on the subreport report footer.
To create the group header do the following :
>Create a formula say:
//@RH
whilereadingrecords;
''
>create a group based on the above formula and make this a top level group
>Click on the options tab in the group expert and enable "Repeat Group Header on Each Page'

hth..
Gary
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 150 total points
ID: 21857098
Agree.  With the subreport in the report header, the report doesn't know how many pages the main report has when it need to render te page numbers.  By using Gary's suggestion, the page numbering will all be done in the main report and thus flow as desired

mlmcc
0
 

Author Closing Comment

by:ruavol2
ID: 31470180
I still am not sure about what the @RH formula means and while reading records.
0
 

Author Comment

by:ruavol2
ID: 21876254
I did exactly what you said and the first page of the report is showing
"Page 1 of 1" then page two shows "Page 1 of 7" the
actual should be on page one "Page 1 of 8"
 Do you know why I am getting the breakup?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now