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 / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Pagination event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stuart Carnie - 17 Mar 2005 07:07 GMT
Hello,

Question:
Is there an event or a status I can use in my C# Word add-in to
determine when Microsoft Word has finished paginating a document?

- - - - - - - - -

Background:
I've written a Microsoft Word add-in in C# that dynamically generates a
document based on an XML file.  Once it has completed adding all the
text and tables, the document takes an arbitrary amount of to
repaginate.  Different times for different speed machines.
After this completes, I would like to able to execute some code to
update the fields / cross references.  I was looking for an event that
Word would raise or a status I could poll, but I cannot find anything.

Cheers,

Stuart
Stuart Carnie - 17 Mar 2005 15:22 GMT
> Hello,
>
[quoted text clipped - 16 lines]
>
> Stuart

I tried executing the Repaginate method on the Document object, and this
waits while it paginates.  However, even after it finishes, Word still
background paginates for a few more seconds to arrive at the final
repaginated document.

I even tried calling Repaginate twice, but the second call immediately
returns, and Word continues to finalise pagination in the background.

Cheers,

Stuart
 
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.