GetVersionInformation returns version 4.0

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
mvanroshum
Posts: 3
Joined: Mon Sep 24 2007

GetVersionInformation returns version 4.0

Post by mvanroshum »

Hi,

When calling the GetVersionInformation method on the CDINTFEx class, 4.0 is returned by the printerdriver.

cdi.DriverInit(printerName);

int intfmajor = -1;
int intfminor = -1;
int drivermajor = -1;
int driverminor = -1;
cdi.GetVersionInformation(ref intfmajor, ref intfminor, ref drivermajor, ref driverminor);

LogMessage(string.Format("Printer Driver initialized. Versioninformation: CDIntf version {0}.{1}, PrinterDriverVersion: {2}.{3}", intfmajor, intfminor, drivermajor, driverminor));


Returned message; Printer Driver initialized. Versioninformation: CDIntf version 262149.0, PrinterDriverVersion: 4.0

I generated an Interop dll by adding a reference from my .Net solution to the registered Amyuni Document Converter Active X 4.5 (which points on my 64 bit machine to the 32 bit version of cdintf450.dll).
When I reference the 64 bit version, it returns the same values.

I hoped the printerdriver version to return 4.5.

Is this bug already known?
Thanks in advance
Marco
peterwegrzyn
Posts: 24
Joined: Tue Aug 19 2003

Re: GetVersionInformation returns version 4.0

Post by peterwegrzyn »

Seems to be a bug. This is what I get with 4.5

CDIntfEx1.GetVersionInformation - CDF= 262149.0 pdf =4.0
Post Reply