Unable to run samples

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
khan007
Posts: 6
Joined: Wed Sep 10 2008

Unable to run samples

Post by khan007 »

Trying to run the sample CsharpConverter.csproj sample always throws a error in intialize position saying that "Unable to load cdintf250.dll"..

after following your documentation steps i have deployed the dll in windows\system folder...

after that iam getting a error like "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

Iam using Vista 64 bit machine ,So can u suggest any problem with OS or code??? says as Could not upload attachment to ./files/12458_dfa4a91364b2988bcb5699b1f3a20d5a.

please find the attached screen shot for it...(iam not able to upload attachment in your forum...Please check it.. i wanna send a scren shot..)

Need ur help ASAP to evaluate this tool for our requirements and need to buy once we are through with our POC...
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: Unable to run samples

Post by Joan »

Hello,

Which version of the PDF Converter evaluation version you have installed on your system 2.50 or 3.02?

The sample you are trying to run seems for version 2.50 of the PDF Converter, if you have version 3.02 installed you need to remove the reference to CDIntf250.dll in your application and add a reference to CDIntf300.dll.

Also please make sure that under 64-bits the PDF Printer is attached to a new port called "NUL:" that you create.

Finally please note that the C# sample that you downloaded was prepared under 32-bits, you may need to change the debug settings to make it run under all platforms.
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
khan007
Posts: 6
Joined: Wed Sep 10 2008

Re: Unable to run samples

Post by khan007 »

Iam using 3.02 but ur code showsa a line in it as

// init PDF driver
[DllImport ("cdintf250.dll")] public static extern System.UInt32 PDFDriverInit (string Printer);

// init HTML driver
[DllImport ("cdintf250.dll")] public static extern System.UInt32 HTMLDriverInit (string Printer);

still changing it to cdfintf300.dll doesnt work..
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Re: Unable to run samples

Post by David »

Hello

The CsharpConverter example uses both the ActiveX and Dll interfaces of CDIntf and also the .Net wrapper CDIntfNet.dll

To use the sample with the current version 3 of the PDF Converter you will need to do the following:

1) Download the demo version at the following link: http://www.amyuni.com/en/developer/pdfc ... tures.html
run the installer to install the printer. This will automatically create a cdintf300.dll file in your windows\system32 directory.
Update the reference to point to the cdintf300.dll from the above step

2) You will also need the .NET wrapper of cdintf which you can download at the following link: http://www.amyuni.com/downloads/cdintf300.zip
Add the CDIntfNET300.dll to your references.

3) In the project do a search for cdintf250.dll to and replace with cdintf300.dll

After the 3 steps above you should be able to run the sample.

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
Post Reply