Error when printing

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
RobertVabo
Posts: 2
Joined: Tue Oct 01 2002

Error when printing

Post by RobertVabo »

:?:

We have included the PDF Converter dev. version 2.5d in our converter application. Sometimes we get an error message: Printer not activated, error code -30.

Anyone else that has this problem?

The application is written in C# and we use Java Script to do the print from word, excel etc.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please tell me what is your application about and how you are printing to the PDF Printer to be able to help you.

Also please note that you need to enable the printer directly before printing.

Thanks.
RobertVabo
Posts: 2
Joined: Tue Oct 01 2002

PDF Convert application

Post by RobertVabo »

Our application is written in C# and JSript and is run like a service. We get the documents from a predefined folder, initiallize the PDF printer, set is as default and starts Word and print the document to the printer.

Some times it works other times it does not work and we get this error message.

Header: Activation error
Message: Printer not activated, error code -30
Regards
Robert Vabo
Application engineer
Gecko AS
www.gecko.no
MarkusBantel
Posts: 15
Joined: Mon Oct 07 2002
Contact:

I get the eror as well

Post by MarkusBantel »

My application works well with the Amyuni Converter 2.1 but with the 2.5a i get this error as well.

But only sometimes, on my developer pc (xp sp2) it works, but on a test pc (win 2000) it doesn't. It seem like the broadcast aren't fired.
MarkusBantel
Posts: 15
Joined: Mon Oct 07 2002
Contact:

Now it works

Post by MarkusBantel »

I delete the registry trees in HKEY_CURRENT_CONFIGURATION
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Printer not activated is generated if you are trying to print to the printer while it is not activated.

To avoid this error you need to call EnablePrinter right before printing. the call to EnablePrinter should be in your printing function and should come right before your printing command.

Otherwise, if you are catching the messages generated by the printer you can call EnablePrinter() when catching the EnablePre() event.

Hope this helps.
Post Reply