Printer Not activated Error while printing PDF!!

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
amish
Posts: 6
Joined: Tue Mar 14 2006

Printer Not activated Error while printing PDF!!

Post by amish »

Hi,
I am using Amyuni PDF converter(2.50a) for printing a pdf file through code.
I have already installed PDF suite sucessfully.
But when i run the code for printing using Amyuni driver i get the following error "Printer not Activated , error code -20" .

Can you tell me where am i going wrong ?

regards,
Amish
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You need to activate the printer before printing to it. Programmatically you need to call EnablePrinter right before printing.

EnablePrinter will take as arguments the Licensee name and activation code you got with the product.

Hope this helps.
amish
Posts: 6
Joined: Tue Mar 14 2006

Error while printing !!!

Post by amish »

Hi ,
Thanks a lot for your reply.
I tried using EnablePrinter method .But when print method was fired it gave me the following error :
"DEVMODE is NULL Check that the printer is installed correctly"
I have Amyuni Priniter Driver installed on my machine.
Can you please tell me where am i going wrong ?

I am pasting the code which i have used in .Net :
---------------------------------------------------------------------
Dim objComp As New ACPDFCREACTIVEX.PDFCreactiveXClass
Dim objPrint As New CDIntfEx.CDIntfExClass
objComp.Open("c:\test.pdf","")
objPrint.EnablePrinter("my company name", "my code")
objComp.Print("Amyuni", False)
----------------------------------------------------------------------

Thanks & regards,
Amish
amish
Posts: 6
Joined: Tue Mar 14 2006

Printer Not activated Error while printing PDF!!

Post by amish »

Hi ,
Forgot to tell you that i also tried initialising the printer driver using the following line of code one at a time:

'objPrint.PDFDriverInit("Amyuni")
objPrint.DriverInit("Amyuni")

So it gave me the following error :
"Unspecifed Error"

Waiting for your reply at earliest.

Regards,
Amish
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I will give you clear idea on how the PDF Converter is supposed to work and i am sure this will help you.

The PDF Converter is a virtual printer that you need to install on your system and use it.

The Developer version is used programmatically while the End User version can be used directly from Windows applications like any other printer.

In your case you are using the Developer version. Here are the steps to follow:

1 - Install the printer on your system using Install.exe or our installation wizard.
2 - Check that the printer is installed in your printers' folder and give it any name you want.
3 - Use the following code to use the PDF Printer:

Dim objPrint As New CDIntfEx.CDIntfExClass
objPrint.DriverInit("Amyuni")
objPrint.EnablePrinter("my company name", "my code")
objPrint.BatchConverter("c:\Temp\*.doc") //batchprint all .doc files in the Temp directory to the PDF Printer.

Notes:

1 - In your code you are refering PDFCreactiveX, this is our PDF Creator control, to use it you need to call SetLicenseKey.

2 - I am not sure why you need to open pdf files in the PDF Creator and print them to the PDF printer, these are alreay PDFs why you want to convert them to PDF again?

Hope this helps.
amish
Posts: 6
Joined: Tue Mar 14 2006

Printer Not activated Error while printing PDF!!

Post by amish »

Hi Joan,
Thanks for your reply.
I need to "compress the orignal pdf" by passing it through pdf convertor.
This is the reason i am using PDF convertor for printing PDF's.



thanks & regards,
Amish
Post Reply