Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error loading MS Word with CREATEOBJECT() in XP
Message
From
10/09/2004 15:25:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00941064
Message ID:
00941191
Views:
15
>>>I have a word automation program that has been working for years. I just found out that it crashes when running under XP. As soon as I try to load Word with this line:
>>>
>>>oWord = CREATEOBJECT("Word.Application")
>>>
>>>I get the error: ClassFactory cannot supply requested class.
>>>
>>>What do I need to change and are there any other "gotchas"?
>>>TIA
>>
>>John,
>>Is it a DELL computer where Office preinstalled? Anyway check security for office members in DCOM (dcomcnfg) first.
>>Cetin
>
>Cetin,
>Yes, it is a Dell with Office Preinstalled. Now what? I ran dcomcnfg but I have no idea what to do with it.

Off the top of my head:
Dblclick Component services, then Computers. You'd see myComputer. Right click, properties then check COM security. It might be all you need to set to allow access for SYSTEM. If that doesn't do by itself open DCOM node, there find MS word application (might be document only - try). Right click and check properties\Security, Identity tabs.
For a more through what to set and where check for messages with keywords "preinstalled,access denied,createobject" - should be following DEVCON 2002.
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
Reply
Map
View

Click here to load this message in the networking platform