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
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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