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: 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--