I am using OLE2 to automate MS-word mail merge and it works fine but I now need to build in error handling before the application is ready for the end-users.
So far I have been unable to detect simulated errors on the Word end such as if the source document does not exist or the destination document already exists and is read only etc.
I have tries using the OLE2.LAST_EXCEPTION but this does not work.
Any ideas?
So far I have been unable to detect simulated errors on the Word end such as if the source document does not exist or the destination document already exists and is read only etc.
I have tries using the OLE2.LAST_EXCEPTION but this does not work.
Any ideas?