General information
Category:
COM/DCOM and OLE Automation
>From VFP, we are using Word automation to preview a document. Once we open the document, we update some fields in the Word document and issue the preview after. Is there a way to do the same but to restrict the Word process to the preview only? Because, as soon as the user closes the preview, he enters in the Word document.
In addition to what Vlad said, you might try using VFPCOM to trap Word's events. When they close the print preview window, I'd assume that WindowActivate, WindowDeactivate and/or WindowSelectionChange would fire, and you could then shut down Word.
- della
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only