Error message: "Could not start print job"

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
gerick
Posts: 4
Joined: Fri Dec 07 2007

Error message: "Could not start print job"

Post by gerick »

Hello

I was wondering if anybody could help me with this problem. I am using the the Amuni PDF Converter Version 2.51d developer edition. When running our application on a Windows 2003 Server 64 bit operating systerm and using the Amyuni PDF converter printer a "Could not start print job" error is produced. This works without errors on a 32 bit operating sytem.

Code: Select all

 Set pdf2 = New CDIntfEx.CDIntfEx

        ' initialize PDF printer and set it as default
        pdf2.DriverInit "Amyuni PDF Converter"

        ' set printer as default
        pdf2.SetDefaultPrinter

        ' set default directory for PDF files
        pdf2.DefaultDirectory = System.TempPath

        ' set default file name
        pdf2.DefaultFileName = strPDFFileName

        pdf2.HorizontalMargin = 0    '1 mm = .0393 in.
        pdf2.VerticalMargin = 0

        ' set options
        pdf2.FileNameOptions = NoPrompt + UseFileName

        ' Make the settings take effect
        pdf2.SetDefaultConfig

        pdf2.EnablePrinter GetAmyuniUserName, GetAmyuniActivationCode
I have verified that the acfpdfuamd64.dll and acfpdfaiamd64.dll was installed.

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

Post by Joan »

Hello,

Please check the following:

1 - That EnablePrinter is called right before your print command

2 - Please create a new local port on your system and add the PDF Printer to that port instead of the LPT1: port. This is a momentary workaround under 64-bits.

Hope this helps.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
gerick
Posts: 4
Joined: Fri Dec 07 2007

Post by gerick »

Thanks for your help. This works now if you are a user with administrative rights. If you are regular user who has rights to print, manage printers, and manage documents. The document goes into the print queue but fails to print. The application hangs when printing the document.

Do you have any suggestions?

Thanks
peterreay
Posts: 1
Joined: Tue May 05 2009

Re: Error message: "Could not start print job"

Post by peterreay »

Hi, does anyone know if this issue has been resolved in v4.0 so that we don't have to use this workaround?

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

Re: Error message: "Could not start print job"

Post by Joan »

Hello,

Please give write access to your users to the following key in the registry: HKEY Current Config -> Software -> Amyuni PDF Printer key.

Hope this helps.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Post Reply