>Want to open a Word document from within VFP 6.0 and then perform a mail merge. If everything is not just so (like data source does not have data, it can not recognize *.dbf files automatically), Word produces some messagebox which returns and OLE error code in VFP. I do not know how to handle these errors in VFP. Also, is there anyway for Word to show the messageboxes in my VFP app? Seemed that Excel would show the messagebox in my app.
>
>Where can I find more information on Word automation in VFP?
In the MSDN Library - the Office 2000 Developer's documentation. There's a new book out from Hentzenwerke that covers Automation in VFP. There are tons of articles in back issues of FoxTalk and FoxPro Advisor. And there's a mail merge class in the FFC of VFP6 that handles managing mail merges with Word.