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 / November 2005

Tip: Looking for answers? Try searching our database.

UNDO for InsertFile,  please ? (C# or VB-6)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 04 Nov 2005 19:40 GMT
Hi! I am writing a program that puts together a bunch of documents.
Sometimes, I need to undo the call for InsertFile() if number of pages in the
resulting document exceeds a certain number.

I can not figure out how to Undo the insertFile() call. I was thinking of
having 2 sets of files and write to the resulting file only if InsertFile()
into my temp document does not exceed the # of pages. However, this solution
seems a bit cumbersome to me.

Any suggestions / code samples / URL's are greatly appreciated
Tony Jollans - 05 Nov 2005 10:08 GMT
Have you tried ...

ActiveDocument.Undo

--
Enjoy,
Tony

> Hi! I am writing a program that puts together a bunch of documents.
> Sometimes, I need to undo the call for InsertFile() if number of pages in the
[quoted text clipped - 6 lines]
>
> Any suggestions / code samples / URL's are greatly appreciated
 
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.