Error using Amyuni Printer on 64bit

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
jameslast
Posts: 16
Joined: Wed Sep 27 2006

Error using Amyuni Printer on 64bit

Post by jameslast »

Hello,

as it seems like the Amyuni-printer does not work under 64bit Windows 2003 server from a application running in 32* bit-mode (even using a local port), I tried to use it from a 64bit application.

For that I created a .Net 2.0 winforms-application using the printer, as .Net 2.0 applications do not run in *32bit mode.
Running this on a regular machine goes fine.
Running this on a 64bit 2003 Server returns the following error:

Retrieving the COM class factory for component with CLSID {68B34269-7559-11D3-BBE5-D53DCBD65107} failed due to the following error: 80040154.

The CLSID results in CDIntfEx.CDIntfEx by searching the registry.

The code looks like this (late-binding):
Type printerType;
printerType = Type.GetTypeFromProgID("CDIntfEx.CDIntfEx");
printer = Activator.CreateInstance(printerType);

As we used the amyuni install.exe I assume the printer was installed correctly on both machines.

What can be done about that? Doesn't the install.exe do everything needed?

Please note: we use the version 3.0 of the printer.

Thank you!
mkb137
Posts: 4
Joined: Wed Jun 25 2008

Re: Error using Amyuni Printer on 64bit

Post by mkb137 »

I have the same issue when attempting to use the cdiftf DLL on Vista 64 in a C# application. It works fine on Vista 32.

Code: Select all

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {68B34269-7559-11D3-BBE5-D53DCBD65107} failed due to the following error: 80040154.
This was with the latest DLL installed from https://www.amyuni.com/downloads/pdfdrv300.exe

Is there no solution?
jameslast
Posts: 16
Joined: Wed Sep 27 2006

Re: Error using Amyuni Printer on 64bit

Post by jameslast »

hello mkb137,

try to register the cdintf300.dll in the syswow64 directory.
I noticed, that it needs to be registered, but the installer never does it. This could solve the problem

regards
mkb137
Posts: 4
Joined: Wed Jun 25 2008

Re: Error using Amyuni Printer on 64bit

Post by mkb137 »

I ran

Code: Select all

C:\Windows\SysWOW64>.\regsvr32.exe cdintf300.dll
and it completed successfully, but it did not solve the problem.
jameslast
Posts: 16
Joined: Wed Sep 27 2006

Re: Error using Amyuni Printer on 64bit

Post by jameslast »

Make sure your .net project is NOT set to "Any CPU" or x64.
Set it to target CPU "x86" in project settings!

Regards,
uwe.
mkb137
Posts: 4
Joined: Wed Jun 25 2008

Re: Error using Amyuni Printer on 64bit

Post by mkb137 »

OK, that worked.

Given that I want to be able to produce x64 native code, my next question is: Will you release a 64-bit version of the PDF Converter?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: Error using Amyuni Printer on 64bit

Post by Joan »

Hello,

The PDF Converter is 64 bits, we have a 64-bits driver, it is CDIntf that is 32 bits.

We are planning to have a 64-bits version of CDIntf but I don't have a timeline for this.

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
jk
Posts: 11
Joined: Fri Mar 23 2007

Re: Error using Amyuni Printer on 64bit

Post by jk »

Hi.

I post my problem in this thread, however, I'm using native 32bit code (C++) in my project.
The application works fine on any 32bit platform and can't work on Windows 2008 server, 64bit.
Message box always appears when application starts printing:
Activation Error
Printer not activated, error code -40.


I don't know what "error code -40" means.
My application calls external printing application (like notepad.exe /p filename.txt).

I call EnablePrinter() (it returns success(1)) in both DOCUMENTEVENT_ENABLEDPRE event handler and right before CreateProcess(). Same result.
I've tried both version 3.00 and 3.02 of the PDF Printer driver. Same result.
I've tried to link cdintf300.dll via the import library and using LoadLibrary(). Same result.
I've tried both 32 bit version of notepad.exe and 64 bit version. Same result.
I've tried to reinstall driver several times and checked the registry paths (HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\Currentversion\PrinterPorts and Devices). Same result.

I can send the sample code to check, but it really does not contain anything interesting.
I know, that Windows Server 2008 is not listed here in the list of supported platforms, but my application works fine on Windows Server 2008 32bit...

Can you please help me with that, or confirm that 64 bit version of Windows Server 2008 is not supported?

Thank you,
Sergey.
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Re: Error using Amyuni Printer on 64bit

Post by David »

Hello

The error code -40 means that you are using a license and activation code that are not for that particular operating system. You can send the license and activation code to support@amyuni.com and request they check that the license is valid for use on the 64bit system.

A list of error codes that are generated when printing to the PDF Converter can be found at the following link: http://www.amyuni.com/forum/viewtopic.php?f=18&t=2141

Hope that helps?

David
Amyuni Custom Development
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php
jk
Posts: 11
Joined: Fri Mar 23 2007

Re: Error using Amyuni Printer on 64bit

Post by jk »

Thank you David.
It can be the reason.

I'll use the email.
BTW, is it sufficient to send "Licensee" and "LicCode" from the Install.ini file (the information I use to activate the printer driver) or I should send something else?

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

Re: Error using Amyuni Printer on 64bit

Post by Joan »

Hello,

Here is what you need to include in the Install.ini file

[Default]
PrinterName="Printer Name"
Licensee="...."
LicCode="....."

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