General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
This is becoming an obsession: Assume that the code below is in a method of a Word automation class that has NO UI. An instance of Word is open and referenced by the Public variable oWord. The document to be edited is open and ready for editing. How do I ‘shell out’ to a process that would allow the user to edit the document using Word, and upon selection of Save, Print or Close, terminate the interactive use of Word, unbind the eventhandler and continue with the VFP application? What code belongs between IF and ENDIF? Can it be a single prg?
I have no idea how you can do that using the code you supplied. If you have no VFP UI and you need to take action when the user is finished editing the document, the only place that I know of to put the code is in the ApplicationEvents2_DocumentBeforeClose method. If the only UI is Word, the only way the user can signal that they are finished editing is by closing the document, so that is where the code would have to go.
Previous
Next
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