Error 2212 using pdf-converter

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
BuB
Posts: 3
Joined: Mon Jan 19 2004

Error 2212 using pdf-converter

Post by BuB »

I'm trying to print a report from MS Access. Everytime I get an error, "Run-Time Error 2212 Access Couldn't Print Your Object" although the printer is existing and the registration key is correct.

:(

I use PDF-Converter Professional 2.10e.

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

Post by Joan »

Hello,

Error 2212 in Windows means: "An error occurred while loading or running the logon script. "

Are you calling EnablePrinter() right before each print out? If not please do so.

If you are still getting this error please try to check at which line of code precisely is generating this error and send a support request to support@amyuni.com, our engineers will be glad to help you.

Thanks.
BuB
Posts: 3
Joined: Mon Jan 19 2004

Post by BuB »

Thank you. I will send a support request.
BuB
Posts: 3
Joined: Mon Jan 19 2004

Post by BuB »

This is a sample of a procedure, that throws that error:


Public Sub PrintDocToPDF()
Dim lReturn As Long
Dim cPDF As CDIntfEx.CDIntfEx

Set cPDF = New CDIntfEx.CDIntfEx

lReturn = cPDF.PDFDriverInit("{Printer name}") '*** Printer exists and lReturn = 0
cPDF.DefaultDirectory = "C:\sample"
cPDF.DefaultFileName = "C:\sample\pdftest.pdf"

cPDF.SetDefaultPrinter
cPDF.FileNameOptions = 3 + 64

lReturn = cPDF.EnablePrinter("{Licence name}", _
"{Licence number"}) '*** Name and numer are correct and lReturn = 0

'*** This line throws error 2212
cPDF.BatchConvert ("{doc-path}\*.doc")
End Sub


I don't understand why it doesn't work. :(
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Most probably you are using an old version of the PDF Converter, please try updating to the latest version.

Thanks.
Post Reply