How do I catch printing errors in a .Net Winforms control hosted in a WPF application?
Posted on 2013-06-25
I have a WPF application, which hosts a custom control which wraps a 3rd party (DevExpress) winforms control.
From within the DevExpress control, I can print using (what I believe is the standard winforms printing dialog). It prints successfully.
However, if there are issues with the printer (not found, connected, turned on or in error state), I do not get notification of that error.
How do I catch these errors?
Are exceptions getting thrown somewhere that I am unaware of?
The client/users/customers would like to be notified of such states/conditions/errors.