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

Stimulsoft Reports.NET discussion
Post Reply
Liam
Posts: 2
Joined: Mon Sep 29, 2025 8:03 am

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

Post 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?
Lech Kulikowski
Posts: 7404
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Liam
Posts: 2
Joined: Mon Sep 29, 2025 8:03 am

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

Post 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.
Lech Kulikowski
Posts: 7404
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply