How to suppress Word popup - Printing silently in background ?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I am using that code snippet to print a word document out of my application.
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"c:\test.doc";
startInfo.Verb = "printto";
startInfo.Arguments = strPrinterName;
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.UseShellExecute = true;
startInfo.ErrorDialog = true;
System.Diagnostics.Process.Start(startInfo);It works fine but: The Problem is, that word pops up, print and quit. Is there an additional parameter to set, to tell word to do it in hidden mode like requested
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;to print silently in the backgound ? Thanks Frank