Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 2K, W2K and vfp6sp5 OLE error
Message
 
 
To
26/09/2003 16:18:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00832836
Message ID:
00832858
Views:
16
This message has been marked as the solution to the initial question of the thread.
Claudio,

What's the current folder for VFP may not be the one for the Word. It's always better to provide full path when you work with external applications.
Thisform.loWordApplication.Documents.Add(FULLPATH("mymodel.dot"), .F.)
>Hello buddies;
>
>On w98 machines this code works pretty fine.. We just start it on a W2K machines.. And an error comes up:
>
>
>If  TYPE("thisform.loWordApplication") <> "O"
>    Thisform.loWordApplication = CREATEOBJECT("Word.Application")
>Endif
>Thisform.loWordApplication.Visible = .T.
>Thisform.loWordApplication.Documents.Add("mymodel.dot", .F.)  && <-- error
>
>
>Error: OLE IDispatch exception code 0 from Microsoft Word:
> The name of document or path are invalid.
>
>mymodel.dot is there on the same folder..
>
>Is there any modifications on VFP's OLE to work with office 2K ?
>
>TIA
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform