Process p = new Process(); PrintDialog printDlg = new PrintDialog(); p.EnableRaisingEvents = true; p.StartInfo = new ProcessStartInfo() { CreateNoWindow = true, Verb = "print", FileName = "C:\Users\vivek.thazhepurayil\Desktop\Test.pdf", Arguments = "/d:" + printDlg.PrinterSettings.PrinterName, WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden }; try { p.Start(); } catch { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)