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!

showing pagination in rtf - help

Status
Not open for further replies.

JSeidel

Technical User
Jan 10, 2003
77
US
There is a crystal article that says page N of M will not display correctly in rtf format. They suggest using the following formulas

//@set
whileprintingrecords;
NumberVar PageNum := 0

and

//@PageNumber
whilePrintingRecords;
NumberVar PageNum := PageNum + 1;
SotreNumberVar("PageN", PageNum)

the second formula doesn't work - what is wrong with it?
 
What does "doesn't work" mean?

You get the wrong number, or syntax errors, or???

Try:

//@PageNumber
whilePrintingRecords;
NumberVar PageNum := PageNum + 1;
"Page " + totext(PageNum,0)

-k
 
I've run into the same problem. I have reports that I output to Paginated Text. I want the page numbering to start on page 2 instead of page 1 which is a cover sheet. I use the following formulas:

//@InitializePageNum - Place in Report Header or Footer and suppress
WhilePrintingRecords;
NumberVar pagenum := 0;

and

//@EvaluatePageNum - Place in Page Header and suppress
WhilePrintingRecords;
NumberVar pagenum := pagenum+ 1;

pagenum//Use SV's example of "Page " + totext(PageNum,0) if you want to add text. Alternately, you can simply embed the formula in a Text field.

Hope this helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top