Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / May 2004

Tip: Looking for answers? Try searching our database.

Programatically set the NumPages Property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Juan - 11 May 2004 17:45 GMT
Hi everyone,

I have a C# Application that, if neccessary, divides a large document into
separate smaller ones. But the first page of the second document must be one
more than the last page of the first document. No problem with that.

The problem is that in the footer of the page, I have a "Page x of y" field,
and the 'x' value is correct, but the y value is the number of pages of the
second document, when it should be the total number of pages of the whole
document.

Is there a way that I can set the value of the number of pages to the valur
that I need?

Thanks, from Spain
Charles Kenyon - 11 May 2004 21:11 GMT
Mark the numpages field in doc1 with a bookmark "TotPages"

Instead of a NumPages field use something along the lines of:

{ = { NumPages } + { INCLUDETEXT "doc1.doc" TotPages } }

You could do something similar with the X part as well so that you do not
have to manually adjust the start of page numbering.

BTW, Word will work with quite large documents. I have one with more than
5000 pages including a Table of Contents that references every page at least
once.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Hi everyone,
>
[quoted text clipped - 11 lines]
>
> Thanks, from Spain
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.