public void PrintAllDocuments() { string[] AllFiles = Directory.GetFiles(@"C:\PDF\", "*.pdf", SearchOption.AllDirectories); for (int i = 0; i < AllFiles.Length; i++) { PrintFile pf = new PrintFile(AllFiles[i]); pf.printerName = "HP ???"; pf.paper = "A4"; pf.Print(); } }
this.printDocument1.DocumentName = @"c:\document1.pdf"; this.printDocument1.Print();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)