Meaning of DriverInit()'s return value?

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
BlackDynamite
Posts: 2
Joined: Fri May 08 2009

Meaning of DriverInit()'s return value?

Post by BlackDynamite »

Hello again. If DriverInit() returns a non-null handle, does that mean the printer is indeed initialized? If so, why would I then get a message box saying "Printer not activated, error code -30"?

Thanks in advance...

BlackDynamite
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: Meaning of DriverInit()'s return value?

Post by Joan »

Hello,

If DriverInit returns a non-null handle this means that it finds the printer and attach to it.

You will need to activate the printer before printing to it and therefore you need to call EnablePrinter() right after your call to DriverInit and right before each printout.

Error code -30 means that the printer has timeout.

Hope this helps
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Post Reply