Page 1 of 1

Re: Disable Internal Error Dialogs in Stimulsoft Reports .NET for Automated Programs

Posted: Mon Sep 29, 2025 9:43 am
by Liam
I've now blocked this error with StiOptions.Engine.HideMessages = true, but I'm not sure if this is a good approach. Is there still a way to catch the exceptions when they occur—without the popup appearing, of course?

Re: Disable Internal Error Dialogs in Stimulsoft Reports .NET for Automated Programs

Posted: Mon Sep 29, 2025 9:20 pm
by Lech Kulikowski
Hello,

What error do you mean? Could you explain your issue in more detail?

Thank you.

Re: Disable Internal Error Dialogs in Stimulsoft Reports .NET for Automated Programs

Posted: Tue Sep 30, 2025 1:31 am
by Liam
Lech Kulikowski wrote: Mon Sep 29, 2025 9:20 pm Hello,

What error do you mean? Could you explain your issue in more detail?

Thank you.


Hello,

I'm not encountering a specific error situation. My program is a printing application developed based on .NET 4.5.2 WinForms, using Stimulsoft version 2020.2.1. When calling Stimulsoft reports for printing, error message windows will pop up to warn about issues such as MRZ template design exceptions, data source validity exceptions, and abnormal disconnection of the printer. The error messages themselves are accurate, but these pop-ups cause my printing program to pause—it can only resume working after manually clicking "Continue". Moreover, the exceptions corresponding to these pop-ups cannot be directly caught by my code (such as try{}catch{}), making it impossible to execute business logic for exception notifications, like sending emails.

So I hope to block these error pop-ups to prevent the program from pausing, and at the same time, I'm looking for another way to capture these exception messages.

I actually provided a more detailed explanation earlier, but I can't find it in the thread now. It might have been blocked. I'm sorry about that.

Re: Disable Internal Error Dialogs in Stimulsoft Reports .NET for Automated Programs

Posted: Tue Sep 30, 2025 8:56 pm
by Lech Kulikowski
Hello,

Switch the report to the Interpretation mode; all errors will be ignored.

Thank you.