Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a word doc in modal form??
Message
From
19/06/2007 10:35:59
 
 
To
19/06/2007 10:29:15
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01234220
Message ID:
01234271
Views:
25
>>You should do it differently:
>>1. Link oWord to form property, i.e.
>>Thisform.oWordapp=Createobject("word.application")
>>2. Check VarType(Thisform.oWordapp) and IsNull(Thisform.oWordapp) in Form.QueryUnload to prevent closing.
>
>
>Yes. I understand. but the problem is the t oWord remains an object even if Word2007 is closed
>
>Peter

You may have deeper check, e.g. for
TYPE('Thisform.oWordapp.ActiveDocument')
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform