G
Guest
Hello.
I've got an issue with PrintPreviewDialog with an unhandled Win32Exception
when pressing the Print button. As far as I can tell the exception is raised
in a background thread that the framework is spawning. The exception is
raised if I preview to a network printer where either the password is
incorrect or the network printer is not online (more or less the same thing
really).
I would like to be able to just display a message like "printer unavailable"
to the user; but, I can't do that by catching the exception from another
thread. I.e. my entry into the PrintPreviewDialog is via the ShowDialog
method; catching the exception at that level means the dialog is abruptly
closed without warning and without printing anything.
If this problem has been encountered before, is there a recommended
workaround?
Thanks,
I've got an issue with PrintPreviewDialog with an unhandled Win32Exception
when pressing the Print button. As far as I can tell the exception is raised
in a background thread that the framework is spawning. The exception is
raised if I preview to a network printer where either the password is
incorrect or the network printer is not online (more or less the same thing
really).
I would like to be able to just display a message like "printer unavailable"
to the user; but, I can't do that by catching the exception from another
thread. I.e. my entry into the PrintPreviewDialog is via the ShowDialog
method; catching the exception at that level means the dialog is abruptly
closed without warning and without printing anything.
If this problem has been encountered before, is there a recommended
workaround?
Thanks,