Printer Error

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
Sandra
Posts: 1
Joined: Tue Apr 01 2003

Printer Error

Post by Sandra »

I am evaluationy your PDF Converter demo version. I used following sample from Common Driver Interface 210.pdf:

Dim wordApp As New Word.Application
Dim documents As Word.documents

lngPrintInit = cdi.PDFDriverInit("Amyuni PDF Converter 01")

' open a Word document in Read-only mode
Set documents = wordApp.documents
documents.Open "c:\test.doc", False, True
' set the ActivePrinter to ours
' set the ActivePrinter to ours
savePrinter = wordApp.ActivePrinter
wordApp.ActivePrinter = "Amyuni PDF Converter 01"
' set watermark parameters
cdi.SetWatermark " D R A F T ", "Verdana", 48, 450, &HFF00FF, 120, -120, True
' NoPrompt + UseFileName + BroadcastMessage + EnableWatermarks
cdi.FileNameOptionsEx = &H1 + &H2 + &H20 + &H40
cdi.DefaultFileName = "c:\test.pdf" ' set output file name
' activate printer before printing
cdi.EnablePrinter "Evaluation Version",
"07EFCDAB01000100C71720CBDBA4ABF6AA49DDF7E8AA44A6575449D"
' print the Word document without background printing
wordApp.PrintOut False

..
Printer gets created, value of lngPrintInit = 0 and if I go to my printer list I can see the printer but on the line where it needs to printout the file it errors out with Error :
5142
"Windows cannot print due to a problem with the current printer setup.
Try one or more of the following:
* Check the printer by printing a test page from Windows.
* Make sure the printer is turned on and online.
* Reinstall the printer driver."

Install.log is sucessfull, but I cannot print the test page for my printer created from application. I followed the steps from this forum where you initialize your printer inside the application, enable it by putting user name and password and then go into properties and try to print the page but it is still not working. I am administrator of the box. I tried to install the printer with Install.exe and use the installed driver but I still get error. Am I missing something?
Thank you for your help
Bastian Thies
Posts: 1
Joined: Wed Apr 02 2003

Post by Bastian Thies »

I have the same problem!

Printer is generated, is set to default and seems to be ready. But when i start a print job i get an error message like "Cannot open printer", "Printer not ready" or "Cannot print" - depending on the application i'm printing from. Windows test page also can't be printed out.

When i downgrade to 2.08 (unregister 2.10 cdintf.dll, register the 2.08 cdintf.dll and delete all the "ex" in the interface :roll:) everything works perfectly!

System: Windows XP (Home and Pro)
Version: PDF Converter Developer Evaluation

What could it be?

Thanks for a answer...
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Sandra, Bastian,

Using the Developer version 2.1 you need to call EnablePrinter before each printout.

The problems you are facing are due to the Activation Code, you may face similar problems if you are not calling EnablePrinter before each printout or if you are using a wrong activation code.

I am not sure about the activation code used by Bastian, but the activation code used by you Sandra is wrong. Please check for the right activation code in the demo page. You may try to download the product again to get the right activation code.

Please note that the actiavation code should not have any extra space in it, sometimes when copying it from Internet Explorer, IE adds some extra space at the end of the code.

Hope this helps :)
pcasilao
Posts: 7
Joined: Wed Mar 02 2005

PDF Converter demo error

Post by pcasilao »

I also get the same error. I'm trying to make the Amyuni Demo TN08 work.

Windows cannot print due to a problem with the current printer setup.
Try one or more of the following:
* Check the printer by printing a test page from Windows.
* Make sure the printer is turned on and online.
* Reinstall the printer driver."

The only line of code that I've changed in the project was:
Const PDFPrinter As String = "Amyuni PDF Converter" instead of '"PDF Converter 210 Dev"

Everything else is as is, enableprinter is called and this is the activation code:

'New with version 2.10 enable printer
PDFWeb.EnablePrinter("Evaluation", "07E...2")
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Crrently, the Activation Code available in the technical notes is for version 2.10 of the PDF Converter.

As you are currently using version 2.50, you need to replace the activation code by the one you got when downloading the new version.

Hope this helps.
pcasilao
Posts: 7
Joined: Wed Mar 02 2005

Demo error 2.5 vs. 2.10

Post by pcasilao »

Hello,

Where can I find the activation code for 2.5?

I'm in the process of evaluating the PDF converter and would like to get the demo version to work.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please check the file install.ini that get created when installing the demo version.

You will find the activation code there.

Thanks.
Post Reply