我正在Win 7系统上启动Reader 10.0,从C#程序向打印机发送PDF文件。这是我现在正在做的:
startInfo.FileName = adobeReaderPath;
string args = String.Format("/t \"{0}\" \"{1}\"", this.pdfFileName, this.printerName);
startInfo.Arguments = args;
startInfo.CreateNoWindow = true;
startInfo.ErrorDialog = false;
startInfo.UseShellExecute = false;
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
Process process = Process.Start(startInfo);
我注意到以这种方式启动Reader(或者从命令提示符中)实际上会启动2个AcroRd32.exe可执行文件。它们都没有最小化。我也尝试了使用ProcessWindowStyle.Hidden,结果相同。
有没有一种方法强制Reader启动时最小化?
谢谢!