I'm using the PDFViewer to print PDF files in a .Net application. My printing preferences (in Conrol Panel) are set to duplex for the printer. If I print a 3 copies of a 1 page PDF file it prints perfectly. If I print 3 copies of a 2 page PDF file, then it print 9 copies (each one is duplexed). When I look in Print Manager, I can see it spooling 9 copies of the PDF. Why is it doing that?
I set my printing preferences to not duplex. Printed the same pdf, and it printed 3 copies (no duplexed, of course).
Following is the code I'm using to print the files:
public void PrintPdf(string filepath, string printer, int copies)
PdfViewer viewer = new PdfViewer();
viewer.Resolution = 600;
viewer.PrintPageDialog = false;
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.Copies = Convert.ToInt16(copies);
Any help would be appreciated.