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

Automatic Paginations in Crystal Report 2

Status
Not open for further replies.

report2000

Technical User
Mar 1, 2005
45
US
I have a report with page numbers. Also I included "Table of Contents" at beginning of my report.
Now – can the page numbers as I have paginated them refer back to the Table of Contents so that they are automatically updated each time there are changes?
I want to know if automatic paginations can be done in Crystal (like Word).
If the answer is "YES" then please let me know how or point me to an example on the web.

Regards
Report2000
 
That's a rather useful extra offered in Word, and I don't think it's available as such.

You might manage something using variables. The starting point would be the commonly-used page-totalling system:
Code:
Place V_head in the Page Header section and suppress it
//   Clear the total
WhilePrintingRecords;
NumberVar PageTot :=0;

Place V_Item in the whichever section contains the field you want to total
// Accumulate
WhilePrintingRecords;
NumberVar PageTot := PageTot + 1;

Place V_Show in the page footer section
// Show
WhilePrintingRecords;
NumberVar PageTot;
That doesn't meet you need, obviously. What you'd have to do is count once per page, and then save the count in a specific variable at the right place. Finally in the 'Table of Contents', display these fields.

If you can actually get it working, please post it up, since others would find it useful.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Thinking about it, all you actually need to do is set the variable to the current page number in the relevant section. I think.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Here is the link I found after reserching the web for a while.
It works if you have only a simple report. I have too many subreports that I need in incorporate into the final report and I need to have one "Table of Contents" for all of them.
So, I have some idea

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top