Error using Amyuni Printer on 64bit
Error using Amyuni Printer on 64bit
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!
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!
Re: Error using Amyuni Printer on 64bit
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.
This was with the latest DLL installed from https://www.amyuni.com/downloads/pdfdrv300.exe
Is there no solution?
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.
Is there no solution?
Re: Error using Amyuni Printer on 64bit
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
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
Re: Error using Amyuni Printer on 64bit
I ran
and it completed successfully, but it did not solve the problem.
Code: Select all
C:\Windows\SysWOW64>.\regsvr32.exe cdintf300.dll
Re: Error using Amyuni Printer on 64bit
Make sure your .net project is NOT set to "Any CPU" or x64.
Set it to target CPU "x86" in project settings!
Regards,
uwe.
Set it to target CPU "x86" in project settings!
Regards,
uwe.
Re: Error using Amyuni Printer on 64bit
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?
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?
Re: Error using Amyuni Printer on 64bit
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.
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
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Re: Error using Amyuni Printer on 64bit
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.
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.
Re: Error using Amyuni Printer on 64bit
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
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
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
Re: Error using Amyuni Printer on 64bit
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.
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.
Re: Error using Amyuni Printer on 64bit
Hello,
Here is what you need to include in the Install.ini file
[Default]
PrinterName="Printer Name"
Licensee="...."
LicCode="....."
Hope this helps.
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
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark