>>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
Thanks for your advice. I have tried that one too, but nothing works. I decided to skip Office 95 and use Office 97 instead and it works fine.
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"