Mr. B wrote:
With Deft Fingers, hi***************@gmx.at (Herfried K. Wagner
[MVP]) wrote:
HOW can you get the final number of pages? Such as Page 1 of THREE?
You will have to print (without actually printing) in order to get
the number of pages. Then you will have to print the document
again, as described by you including the number.
Nutz... Okay... thanks! I was hoping for a 'built-in' solution.
Rather than re-run the print, fortunately I know how many 'items' per
page I will allow to have (ie: say 15)... so knowing my total, I can
then just do the math and determine how many pages I'll have (tried
it and it works).
Hehehehe.... Make sure you test what happens if the extra character ( ie
"Page 9" vs "Page 10") in some imbedded text somewhere causes (column /
widow /orphan) overflow to the next page, causing everything to change
again. I implemented this in the early 1980's in a "word processor" whose
back end was Xenix FoxBASE. The loop was basically
REPEAT
format, format, format, format, ....
SAVE
UNTIL NO MORE CHANGES
PRINT (The Final Copy Of Everything)
IMO MS Word doesn't do as well. With versions and two side printing I've
had display and/or printing errors in *every* version I've used (MS Word 2.0
to 2002.)
The general case of "See Figure xxx on page yyyy" IS NOT EASY!!! There may
be no "100% correct" solution, especially with proportional fonts. My
algorithms identified threashing and inserted an arbitrary space to work
towards a solution.
-- Mark