Accusoft.PrintPro8.Net
Print Without ImagXpress

The following example shows how to print an image file without ImagXpress.

Example
Copy Code
//generic Printer object, this is a real printer or a file depending on the user's selection
Accusoft.PrintProSdk.Printer printer;  
Accusoft.PrintProSdk.PrintJob job;  // object representation of a print job

// prompt the user for the desired printer
printer = Accusoft.PrintProSdk.Printer.SelectPrinter(pp,true);

if (printer != null)
{
  // Create a PrintJob object for the above-selected Printer.
  //  If the printer is not specified, PrintPRO will use Window's default printer.
  job = new Accusoft.PrintProSdk.PrintJob(printer);
  job.Name = "Accusoft PrintPRO Demo";

  job.Printbitmap(new Bitmap("c:\\image.bmp"), job.LeftMargin, job.TopMargin,
     job.PrintWidth- job.LeftMargin, job.PrintHeight - job.TopMargin - job.BottomMargin, true);

  // Finish the print job to the end of the current page and print the document
  job.Finish();
}

 

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback