Process p = new Process(); if (this.printDialog1.ShowDialog() == DialogResult.OK) { ProcessStartInfo info = new ProcessStartInfo(); info.FileName = sFilePath; info.CreateNoWindow = true; info.UseShellExecute = true; //info.Arguments = this.printDialog1.PrinterSettings.PrinterName; info.Arguments = "\"\\\\" + Dns.GetHostName() + "\\" + printDialog1.PrinterSettings.PrinterName + "\""; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; p.StartInfo = info; bool sdfvgfs= p.Start(); p.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)