How to install Printer using PaperlessPrinter SDK

Top  Previous  Next

 

Copy all SDK files in the SDK Installed Directory\Ax to your Application exe directory

 

There are 2 ways to install the Printer,

 

Case 1 : Runtime (From Your Application)

       Use

               PaperlessPrinterAxYYY.YYYDriverInitialize("Your Printer Name", out errorCode);

 

       This will delete the printer when your application exits

 

Case 2 : During Installation

       Use

               PaperlessPrinterAxYYY.YYYDriverInitialize("Your Printer Name", out errorCode);

               PaperlessPrinterAxYYY.DriverInitialize("Your Printer Name", out errorCode);

 

       This will create a permanent printer.

 

You can also create printer permanently using the command line tool,

       Utility.exe "1" "Your Printer Name"

 

To remove the printer,

       Utility.exe "2" "Your Printer Name"        

 

In the above code,

       YYY stands for PDF, HTML, JPEG, BMP, EXCEL, RTF