Suppressing Error Dialog when Opening a File

I use diagram and slides and sometimes when opening an invalid file my application gets as aspose error dialog box. Is there a way to suppress this dialog box and get a returned error code?

@joseph_w,
Thank you for contacting support.

It looks like your question is related to error handling in your application. Typically, any errors should be caught and processed using try-catch statements. Then you decide whether to show the dialog box or not.