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
Printer Not activated Error while printing PDF!!
Error while printing !!!
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
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
Printer Not activated Error while printing PDF!!
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
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
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.
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.
Printer Not activated Error while printing PDF!!
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
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