>I'm printing a Word 95 document from Visual FoxPro and it works fine, but when I'm closing the document/exit Word with the Word-Basic command oWord.Activedocument.FileColse(2) I get following error: OLE error code 0x80020006 Unknown error.
>I have tried other ways to close/exit Word, but with no luck, I always an error of some kind.
>
>Help ......
Benn,
AFAIK there is not "activedocument" in word.basic. Instead you could use :
oWord.Fileexit(2) && Exit no save
Cetin