Error trying to start print job

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
dls619
Posts: 4
Joined: Wed Apr 21 2004

Error trying to start print job

Post by dls619 »

I have recently upgraded from cdintf.dll 1.59 to 2.10h (developer edition) and can not get my application to print.

This code is done before any printing;

1095 Set PDFObject = CreateObject("CDIntfEx.CDIntfEx")
1100 If (Not PDFObject Is Nothing) Then
1110 PDFObject.DriverInit mPDFPrinter

1115 PDFObject.EnablePrinter PRINTER_OWNER, PRINTER_REGCODE
1120 PDFObject.SetDefaultPrinter
1125 PDFObject.DefaultFileName = mCURRENT_PDF_FILE
1130 PDFObject.DefaultDirectory = mPATH_TO_WORKING_DIRECTORY
1135 PDFObject.FileNameOptions = NoPrompt + UseFileName
1140 PDFObject.FontEmbedding = CBool(mFontEmbedding)

Where PDFOBJECT is a cdintf object, PRINTER_OWNER is my License To and PRINTER_REGCODE is my registration code.

Then when I try to print
110 MainRpt.Printer.DeviceName = Pcont.PrinterName
115 MainRpt.Printer.RenderMode = 1
120 MainRpt.Printer.StartJob MainRpt.documentName

I fail on line 120. At this point MainRpt is an ActiveReports report that has had its printer assigned to the PDF printer.

If I use the old cdintf.dll I can get it to work. Are there conflicts if I have had the old version of cdintf.dll on my machine?

Dan
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi Dan,

Just add EnablePrinter right before StartJob, and your code will work.

Using version 2.10 the printer should be enabled after calling PDFDriverInit and before each printout.

Hope this helps.
dls619
Posts: 4
Joined: Wed Apr 21 2004

Post by dls619 »

Joan wrote:Hi Dan,

Just add EnablePrinter right before StartJob, and your code will work.

Using version 2.10 the printer should be enabled after calling PDFDriverInit and before each printout.

Hope this helps.
This did not work for me. Another piece of information is that this same code works on another machine. Both machines are the same model with the same OS. The installation of the PDF driver looks the same on both.

Dan
dls619
Posts: 4
Joined: Wed Apr 21 2004

Post by dls619 »

dls619 wrote:
Joan wrote:Hi Dan,

Just add EnablePrinter right before StartJob, and your code will work.

Using version 2.10 the printer should be enabled after calling PDFDriverInit and before each printout.

Hope this helps.
This did not work for me. Another piece of information is that this same code works on another machine. Both machines are the same model with the same OS. The installation of the PDF driver looks the same on both.

Dan
I am finding that it has something to do with the way the components are installed. I have an application that pushes out revisions to many machines. This runs on the client machine but with administrator priviledges. If I push out the new 2.10 components and create a printer this way it does not work even though my printer is created.

Dan
dls619
Posts: 4
Joined: Wed Apr 21 2004

Post by dls619 »

dls619 wrote:
dls619 wrote:
Joan wrote:Hi Dan,

Just add EnablePrinter right before StartJob, and your code will work.

Using version 2.10 the printer should be enabled after calling PDFDriverInit and before each printout.

Hope this helps.
This did not work for me. Another piece of information is that this same code works on another machine. Both machines are the same model with the same OS. The installation of the PDF driver looks the same on both.

Dan
I am finding that it has something to do with the way the components are installed. I have an application that pushes out revisions to many machines. This runs on the client machine but with administrator priviledges. If I push out the new 2.10 components and create a printer this way it does not work even though my printer is created.

Dan
Here is something for all of you that are upgrading the Amyuni printer drivers. I would not recommend running the Install.exe if you already have a previous version on the machine. This seemed to be the cause of my problems. As it turns out, Install.exe was only adding CDIntf210.dll to my system32 directory and a whole lot of printer registry settings. Well, by just pushing out the CDIntf210.dll to the system32 directory I am able to once again print fine. Install.exe is good if you do not have any drivers already installed. Let me know if I am wrong, but I am glad to just get the stuff working again.

Dan
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Copying CDintf210.dll to the system directory will update cdintf but it will not update the driver.

You are still using the old driver with a newer Cdintf.

If you want to update the driver manually too you can do so by renaming and copying acpdf.dll and acpdfui.dll to the following directory:
"c:\Windows\system32\spool\drivers\w32x86" (for windows 2000)

But in general you should be able to install the printer using Install.exe or the Installation wizard that you get when downloading version 2.10.

Mainly you need to have all applications closed when running Install.exe and you need to activate the printer after installing it to be able to use it.

If you are facing problems installing the new printer driver using Install.exe please send us an e-mail to support@amyuni.com and we will check what is happening on your system.

Thanks.
Post Reply