General information
Category:
COM/DCOM and OLE Automation
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only