Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Numbers of Sub Reports 1

Status
Not open for further replies.

dasiga222

IS-IT--Management
Sep 22, 2003
68
US
Hi

I am using Crystal reports 10
I have a sub report with its page numbers in the page footer
section of the sub report

Now ,when I imported that sub report into the main report
the page footer section is missing and I am not able to see the page numbers

All that I see is the page numbers of the Main report
If I need to see page numbers of the individual sub report
what is the procedure ?

Thanks
 
Subreport page numbers are controlled by the Main report.

Do you mean that you want the subreports to have different page numbers?

Where the subreports are located are key to this, but in general use shared variables to pass values, or if you want the report to start over once the subreport is hit, right click the section before the subreport is in and select format section->Reset page number after.

Otherwise post specifics.

Here's an article on creating a faux page footer in subreports:


And if you want to have seperate page numbers in it, start with a formula in the main report containing:

whileprintingrecords;
shared numbervar Pg:=0

Then in the subreport faux page footer, use a formula such as:

whileprintingrecords;
shared numbervar Pg:=Pg+1;
"Page number " + totext(Pg,0,"")

This will start with page 1 in the subreport.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top