how to avoid msg "Printer not activated error code - 30

If you are a VB developer and have questions about using our products from VB, here is the place to post them.

how to avoid msg "Printer not activated error code - 30

Postby kamleshvgujarathi on Sat Nov 26 2005

Hello :D ,

If we exit from the middle of the enable pre event then it gives the messages that "Printer not activated error code -30"

how to avoid this message ?

Waiting for your reply.

Thanks.

:?:
Kamlesh Gujarathi
kamlesh@itshastra.com
kamleshvgujarathi
 
Posts: 39
Joined: Fri Jan 09 2004
Location: Bombay ( INDIA)

Postby Joan on Mon Nov 28 2005

Hello,

When catching the EnablePre event you shouldn't run any code but enabling the printer by calling EnablePrinter.

You code needs to be in the StartDoc Event. If you wish to exit you can exit from the StartDoc or StartDocPre Event.

hope this helps.
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002


Return to Visual Basic Community

Who is online

Users browsing this forum: No registered users and 4 guests