Printer not activated, 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
Icunune
Posts: 24
Joined: Thu Sep 04 2003

Printer not activated, error code -30

Post by Icunune » Wed Jan 06 2010

Hi to everibody. I just update to version 4.0 of amyuni pdf converter and I have this error message.
Printer not activated, error code -30
With the amyuni 3.0 don't occurs this error message.

I install the printer using install.exe -s "Amyuni PDF Converter" -n "My UserName" -c "My license Code"


An example of my code in visual foxpro

CREATE CURSOR Icu (nombre c(30),pob c(50))
INSERT INTO icu (nombre,pob) VALUES ("prueba","pobprueba")

lxFormato="c:\prueba.frx"
lxfichero="C:\prueba.pdf"
lxresolucion=150

xwait("Traspasando fichero a PDF...")

pdf=CreateObject("cdintfEx.cdintfEx")
nError=pdf.driverinit("Amyuni PDF Converter")
nError=pdf.EnablePrinter("My UserName","My License Code")

pdf.FileNameOptions=1+2+4+16+64+128
pdf.resolution=lxresolucion
pdf.setdefaultconfig()
set printer to name "Amyuni PDF Converter"
report form (lxformato) to FILE(lxfichero) noejec noconsole ((( Here is when give me the error message )))

PDF.RestoreDefaultPrinter()
set printer to
pdf.FileNameOptions=0
pdf.resolution=0
pdf.DriverEnd
xwait("Fichero PDF Traspasado")


The same code in amyuni 3.0 changing the username and license code for the 3.0 version, goes ok, I haven't got error and the pdf file is created very well.

¿¿What is the solution??
Thanks a lot

Icunune
Posts: 24
Joined: Thu Sep 04 2003

Re: Printer not activated, error code -30

Post by Icunune » Thu Jan 07 2010

Hello everibody

I find the solution

changing pdf=CreateObject("cdintfEx.cdintfEx") with pdf=CreateObject("cdintfEx.cdintfEx.4")

Bye...

karkram
Posts: 4
Joined: Tue Jun 09 2009

Re: Printer not activated, error code -30

Post by karkram » Wed Mar 03 2010

Hi,

iam facing this same issue in my application. Iam using the amyuni PDF convertor 4.0.
When i try to convert a big HTML file to PDF , i am getting PRINTER NOT ACTIVATED error.

Please provide me the c#.net code to avoid this error.

Thanks

Post Reply