|
-
Jul 4th, 2004, 05:15 AM
#1
Thread Starter
Hyperactive Member
Exception not being handled
In my app I am trying to print to a network printer.
When the printer is not available, and I try to print to it, I get a System.ComponentModel.Win32Exception in system.drawing.dll. "The RPC Server could not be found".
How can I catch this error?
I have tried
Try
Catch objError as System.ComponentModel.Win32Exception
End Try
and a whole bunch of other exception types, but nothing can seem to trap this error.
-
Jul 4th, 2004, 05:43 AM
#2
yay gay
VB Code:
Try
...
Catch Error as System.Exception
...
End Try
\m/  \m/
-
Jul 4th, 2004, 09:01 AM
#3
Thread Starter
Hyperactive Member
Nope, I've already tried that
-
Jul 5th, 2004, 01:23 PM
#4
what about trying to catch an Object rather than an instance?
Maybe that error doesn't inherit from the standard exception family.
Just a guess
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|