Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP app have its own copy of Word?
Message
From
01/02/2012 09:08:05
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01532736
Message ID:
01534198
Views:
73
>The primary purpose of the application is to generate output and about 60% of it comes from Word automation. It seems logical to create and destroy the instance of Word along with the application session so all processes can access the global reference in the same way. How do I verify that the reference is still a valid Word application? Type() returns 'O' long after Word.quit()

Try checking oWord.Name. Here's what we used in the Automation book:
RETURN VarType(This.oServer)<>"O" OR TYPE("This.oServer.Name")<>"C"
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform