Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word XP (but not Excel) Automation Trouble
Message
From
17/05/2002 07:40:50
 
 
To
17/05/2002 06:52:37
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00658060
Message ID:
00658073
Views:
14
>Example 1: (Always Fails)
>
>Local vWord
> vWord=CREATEOBJECT("Word.Application")
> vWord.Documents.Open(ALLT('e:\vfp\quote\additional.doc'))
> vWord.Visible=.T.
>Release vWord
>The error generated is in the first example and the erros is:
>
>OLD Error Code 0x800x70005 Access is Denied
>
>This does not happen on clients non-XP computers....any thoughts or messages.
>

Any possibility that your virus scanner is getting in the way? I ran into an issue with a client who had the NAV Office Plug-in running, and it slowed things down enough that some automation commands failed.

Incidentally, I recommend that you call the Quit method before releasing the variable::

vWord.Quit()
RELEASE vWord

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform