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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 9 - Report Page Number Carry-Over

Status
Not open for further replies.

mechInferno

Technical User
Oct 24, 2005
24
CA
Hi,

I'm looking to find a way to carry over the page numbers from report to report when a set of reports are combined together to make one.

We are creating contracts in small parts. Each section is it's own report and we just put the together prior to creating a PDF. Right now the page numbers are reseting for each report, so it kinda shows 1,2,1,2,3,1,2,1,1,1,2,1,2 for a page order. We are using Crystal 9 in a VB.NET(1.1) web app.

Any ideas how to make the page numbers show in a proper order? Is there any way to reference a page count from the previous reports?

Thanks,
 
The only thing I can think of would be to do create a "Last Page" prompt for each report after the first one. Then instead of using just PageNumber in your reports, you would use a formula that looks like this:

Pagenumber + {?LastPagePreviousReport}

This means that you would probably have to open every report to determine what its last page number is so that you can pass that info to the next report.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
How exactly are you putting the reports together before creating the pdf? If you were adding them as subreports to a container report, then you could potentially pass the pagenumbers from one report to the next.

-LB
 
Each of the reports are created separately and are held in a temp file until the last report is created, then it's saved as a PDF using PDFcreator.

Are there any properties that can be used to get the number of pages and get the next report to start at [#pagesfrompreviousreport] + [page number of current report]? Then maybe hold on to this as a global variable for the contract creation?

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top