Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01184909
Message ID:
01185221
Views:
18
>Hi.
>I have two XP machines on a network, both with Word installed locally, one of which does Word automation fine, the other gives an error:
>
>ole error code 0x8007007e The specifid module could not be found.
>The offending code is: oWord = CreateObject("Word.Application")
>
>Both Word and VFP run fine on both machines.
>Any ideas on what might be casusing this ?
>
>Regards,
>Gerard

What John Harver suggested is important - even when everything runs okay - the "oWord" object could stll be hanging around in memory. You could try NEWOBJECT, but that may not be the problem.

Do VFP and Word on the system that fails both have the same user install and prividges?

Press Crtl+Del and look in the process window. If you see "Word" in there - remove the process and try again. Also make sure - after your automation completes - to clear that reference up. Come back if you need help with that. If it is not yours it would be interesting to learn if it disappears after a reboot (I loved that cartoon "REBOOT").

A Word VBA would be a great way to do dirty deeds - make sure users are turning off their systems when they leave and that they are disconnected from the "net".
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform