>Thanks for this Cesar. we've implemented this and has been working nicely. I've quick question ,on some clients this throws following error when printing TIF files.
>'unhandled structured exception, error no:2027, messages: declare DLL call caused an exception'.
>
>it does not give any other information! by the way these images can be printed fine from external applications.
>any ideas how to troubleshoot this Please ? thanks for the advise.
Hi Rajani,
As far as I remember, you can retry after receiving this error and the second time it would work fine. So, just try this call in try/catch and re-try in catch (probably inside another try/catch just in case).
If it's not broken, fix it until it is.
My Blog