>I am calling crystal reports through OLE, and whenever the user cancels the option to generate a report (already inside crystal reports), visual foxpro returns and shows an OLE iDispatch exception code 20545...:Request cancelled by user.
>
>How can I trap these type of errors from Foxpro, so that my app doesn't show these errors to the users, and I can handle them?
Do a search here for Crystal Reports and Craig Berntson. I seem to remember him posting some code to handle the error. Since I'm at home, I don't have my notes handy.