Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word 2K, W2K and vfp6sp5 OLE error
Message
 
 
À
26/09/2003 16:18:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00832836
Message ID:
00832858
Vues:
17
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform