Printer not acivated, error code -30

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
sir_hel
Posts: 20
Joined: Tue Mar 13 2007

Printer not acivated, error code -30

Post by sir_hel »

When testing PDF-Converter 3.0 "Evaluation Version Developer Pro 3.0" on Windows XP I get the Message "Printer not activated, error code -30".

Here is a code snippet showing the logical programm-flow:
...
DriverInit
...
hdc = CreateDC
xxx -> see below
EnablePrinter
(SetMapMode)
(SetTextAlign)
StartDoc
-> Activation Error - Printer not activated, error code -30
...

+ When inserting "GetSaveFileName" at Position xxx, which displays a window to let the user choose the filename, everything works fine.
+ When using at the same place a fixed filename, we get the "Printer not activated..."-Message.
+ When using a fixed filename and additionally inserting the command "_sleep(1000)" it also works fine.
+ Tests showed us that _sleep >= 700 works fine, everything shorter produces the above error.

Can't be really a timeout error (as "-30" indicates)!?

Any ideas how to solve the problem? Using sleep is not really a professional solution.

Regards,
Helmut Schierer
sir_hel
Posts: 20
Joined: Tue Mar 13 2007

Post by sir_hel »

Has anybody encountered a similar problem?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Sleep whas needed only with the evaluation version.

This issue is resolved in the new version of the PDF Converter, this new version will be online in 2 to 3 weeks.

There will be no need to call slpeep anymore when using an evaluation version.

Hope this helps.
Post Reply