.Net code
Hello,
I didn't really get what you mean by: "using the .Net dll for a Windows environment".
We have a .Net version of the PDF Creator only, the PDF Converter doesn't have a .Net version CDintf.dll has a wrapper for .Net.
Here is a sample C# .Net code that prints to the PDF Printer using the ActiveX interface of CDIntf:
Hope this helps.
I didn't really get what you mean by: "using the .Net dll for a Windows environment".
We have a .Net version of the PDF Creator only, the PDF Converter doesn't have a .Net version CDintf.dll has a wrapper for .Net.
Here is a sample C# .Net code that prints to the PDF Printer using the ActiveX interface of CDIntf:
Code: Select all
// Creation of a CDintfEx object and a Document object
private CDIntfEx.CDIntfEx cdi = new CDIntfEx.CDIntfExClass();
// Printer initialization for the ActiveX interface
// Declarations is an assembly containing the global declarations
cdi.DriverInit(Declarations.PrinterName);
di.EnablePrinter (Declarations.LicensedTo, Declarations.ActivationCode);
private void Print_Click(object sender, System.EventArgs e)
{
// Set FileNameOptions and output file name.
cdi.FileNameOptionsEx = (int) (Declarations.NoPrompt + Declarations.UseFileName );
cdi.DefaultFileName = "C:\\Temp\\Test.pdf";
// Set the output pdf file name
cdi.DefaultFileName = outputAx;
// Enable the printer before each printout for the Developer version
cdi.EnablePrinter (Declarations.LicensedTo, Declarations.ActivationCode);
// Batch print a group text documents
cdi.BatchConvert ("*.txt");
// When Printing ends reset fileNameOptions to 0
cdi.FileNameOptionsEx = 0;
}
Hope this helps.
On page 158 of the Common Driver Interface 250 pdf it states information about a .Net managed interface (also says to look at the ActiveX information). There is also a link to the download for the CDIntfNet.dll that has reduced functions. Since I am very new at your converter I am still confused at how to deploy with my application. Is there extra steps that I need to do in the deployment or stepup of my application? I get the most use out of sample code that is written to get the most functionality from the product so I was wondering if some was available. Is the .net interface something that you are expanding upon?
Thanks,
Bill
Thanks,
Bill
Hello,
Yes, CDIntf.Net is a managed dll for .Net, you need to include it in your application like any other managed dll by adding a reference to it under your project "References".
For now the .Net CDIntf contains the set of the most important functions to use the PDF Converter, there is no plan to expand it in the short term but later on we may add some more functionalities to it.
We are currently preparing a complete C# Technical note on using the PDF Converter from .Net, it is in final stages but not online yet. If you wish please contact support@amyuni.com and we can send you a copy of the C# sample available with this technical note or we can guide you step by step on using the PDF Converter from inside your own project
Yes, CDIntf.Net is a managed dll for .Net, you need to include it in your application like any other managed dll by adding a reference to it under your project "References".
For now the .Net CDIntf contains the set of the most important functions to use the PDF Converter, there is no plan to expand it in the short term but later on we may add some more functionalities to it.
We are currently preparing a complete C# Technical note on using the PDF Converter from .Net, it is in final stages but not online yet. If you wish please contact support@amyuni.com and we can send you a copy of the C# sample available with this technical note or we can guide you step by step on using the PDF Converter from inside your own project