The way we did this was to have two layouts: one without "X of N" and one with. Using the first layout, print the report for each value you're grouping by and store the end page numbers with the appropriate key to a cursor (i.e. if you're grouping by some value and that group header band is set to reset the page number to 1, then you will need to store the last page number for each value). Then using the second layout you can reference cursor and provide the "N" value. I know this sounds sloppy but I haven't found another way around this.
>I'm trying to print on each of my pages in a VFP report, "Page 1 of X", "Page 2 of X", etc...
>
>Anyone know how to get the value of "X" as being the total number of pages?
>
>TIA!
>
>Mark
Ronald Suen
Epic Information Solutions Inc.
Ph: (780) 488-4418
Fax: (780) 488-0402