Hi, I'm looking for a c# example of PDF Converter.
I need to convert a fil (doc, xls, jpg, tif) into pdf
where can I find it ?
thanks
C# Example
Hi, try this:
cdintf.dll is correct Dll ? or it is a wrapper of someting else ?
Answer please ...
Thanks and best regards
It works correctly, but my question is: it is correct ?
// Reference cdintf.dll in installation root of PDF Creator Developper version
string strLicensTo;
string printerName;
string strActivationCode;
strLicensTo = "Evaluation Version Developer";
printerName = "Amyuni PDF Converter";
strActivationCode = "07EF...";
CDIntfEx.CDIntfExClass cdi= new CDIntfEx.CDIntfExClass();
cdi.PDFDriverInit(printerName);
cdi.DriverInit(printerName);
cdi.EnablePrinter(strLicensTo, strActivationCode);
cdi.DefaultFileName = @"C:\Test\AAA.pdf";
cdi.FileNameOptionsEx = 3; //NoPrompt + UseFileName
cdi.SetDefaultPrinter();
cdi.BatchConvert(@"C:\Test\AAA.doc");
cdi.RestoreDefaultPrinter();
cdi.FileNameOptions = 0;

cdintf.dll is correct Dll ? or it is a wrapper of someting else ?
Answer please ...
Thanks and best regards
Hello,
I will post here a C# sample that prints Crystal Reports to PDF using CDintfNet.dll (.Net version of CDIntf).
You can download the .Net version of CDIntf from: http://www.amyuni.com/downloads/cdintf250.zip
I will post here a C# sample that prints Crystal Reports to PDF using CDintfNet.dll (.Net version of CDIntf).
You can download the .Net version of CDIntf from: http://www.amyuni.com/downloads/cdintf250.zip
Code: Select all
private void Print_Click(object sender, System.EventArgs e)
{
// Initialize the PDF Printer if not initialized yet
if ( !initialized )
Initialize();
// Set FileNameOptions and output file name.
cdiNet.FileNameOptions = Declarations.NoPrompt+ Declarations.UseFileName;
cdiNet.DefaultFileName = outputNet;
// Initialize a new Crystal report object
CrystalReport1 report = new CrystalReport1();
//Select the Printer to which the report will be printed
report.PrintOptions.PrinterName = Declarations.PrinterName;
//Print the report, set startpageN and endPageN to 0 to print all document
report.PrintToPrinter(1,false,0,0);
cdiNet.FileNameOptions = 0;
}
private void Initialize()
{
// if already called then exit
if (initialized)
return;
// If not called than initialize it
cdiNet.DriverInit(Declarations.PrinterName);
cdiNet.EnablePrinter (Declarations.LicensedTo, Declarations.ActivationCode);
// Set the Printer as Default, this is needed only if you can not print to a specific printer
cdiNet.SetDefaultPrinter();
// Set initialized to true
initialized = true;
}
Thanks,Joan wrote:Hello,
CDIntf.dll can be used as an AcitiveX or as a DLL.
We have a special .Net version of CDIntf that contains the main functions of CDintf (and not all of them). You can use it if you wish.
Hope this helps.
but the method BatchConvert in CDIntfEx.dll not exist in CDIntfNet.dll
How con I convert a file in pdf using CDIntfNet.dll ?