Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make Word visible
Message
From
03/10/2011 22:34:16
 
 
To
03/10/2011 06:35:58
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows 7
Miscellaneous
Thread ID:
01525400
Message ID:
01525505
Views:
35
>1. How do I disable the user from X'ing out of the main Word window? She can X out of the document, but not Word.
>
>You have to create a handler class that implements Word's ApplicationEvents2 Interface and write some code in the DocumentBeforeClose method of that class to stop the document from closing. Then you use VFP's EVENTHANDLER() function to bind the Word event to the handler class's methods.There may be an explanation and some sample code on how to do this in my "Event Handling in Visual FoxPro" session which you will find at http://www.tightlinecomputers.com/Downloads.htm

Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform