Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CLOSING MS WORD WITHOUT PROMPTING TO SAVE CHANGES
Message
From
24/03/2000 15:02:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00343803
Message ID:
00350168
Views:
27
>Hi Cetin,
>
>Thanx every so much once again. Please suggest a method for detecting the presence of word on a users computer. I bomb out if I attempt to create an object reference to word if word is not present.
>
>Neil
>
>>>Hi Cetin,
>>>
>>>I have one more question about your suggestions? You mentioned that you set a timer to monitor if printing is completed. What WORD property indicates if printing is completed or not?
>>>
>>>Thanx
>>>Neil
>>
>>
BackGroundPrintingStatus.
>>Cetin


Hi Neil,
I wasn't be able to connect for days.

I check registry to see if class is registered or not :
*function _IsClassRegistered
Lparameters tcClass
#Define HKEY_CLASSES_ROOT    -2147483648
#Define ERROR_SUCCESS		0	&& OK

Declare Integer RegOpenKey IN Win32API ;
    Integer nHKey, String @cSubKey, Integer @nResult

Declare Integer RegCloseKey IN Win32API ;
    Integer nHKey

Local lnKey
lnKey = 0
llRetVal = ( RegOpenKey(HKEY_CLASSES_ROOT, tcClass, @lnKey) = ERROR_SUCCESS )
If llRetVal
    RegCloseKey(lnKey)
Endif
Return llRetVal
? _IsClassRegistered("word.application")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform