PixTools.NET Multi-Image Printing Sample

Since the PixView object in Pixtools.NET has a print property for one image only, a frequent inquery is how to send a multi-image document as one print-job to the printer.  As is, if a multi-image file was sent to the printer from the PixView, there would be as many print-jobs as images sent to the printer.  The sample attached to this document shows how to print any document with any number of pages using PixTools.NET.  Here is a code excerpt from the sample:


public void DoPrinting(PixImageStorage imageStorage)
 PrintDocument printDocument = new PrintDocument();
 printDocument.PrintPage += PrintDocumentPrintPage;
 PrintDialog printDlg = new PrintDialog();
 printDlg.Document = printDocument;
 // If the result is OK then print the document.
 if (printDlg.ShowDialog() == DialogResult.OK)

The example requires version 8.3 or greater of PixTools to be installed.  If you want to try it with an older version of PixTools.NET, change the references for the project to point to the older PixTools libraries.