EDN Admin
Well-known member
i want to print whitout opening adobe window.
i have this code: string printerName = "Microsoft XPS Document Writer";
Process process = new Process();
process.StartInfo.CreateNoWindow = true; //!! DOESNT WORK
process.StartInfo.UseShellExecute = false;
process.StartInfo.Verb = "PrintTo";
process.StartInfo.Arguments = """ + printerName + """;
process.Start();
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
sleep(10*1000);
process.Kill();
View the full article
i have this code: string printerName = "Microsoft XPS Document Writer";
Process process = new Process();
process.StartInfo.CreateNoWindow = true; //!! DOESNT WORK
process.StartInfo.UseShellExecute = false;
process.StartInfo.Verb = "PrintTo";
process.StartInfo.Arguments = """ + printerName + """;
process.Start();
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
sleep(10*1000);
process.Kill();
View the full article