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.


Kamlesh Gujarathi
Posts: 39
Joined: Fri Jan 09 2004
Location: Bombay ( INDIA)

Postby Joan on Mon Nov 28 2005


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.
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 2 guests