我正在使用Visual Studio 2010(C#)编写Web应用程序.我想在单击按钮时将PDF(保存在我的电脑中)发送到打印机.
为了创建PDF,我使用了iTextSharp.我试过这个,但它只是打开Adobe Reader:
proc.StartInfo.FileName = @"C:\Archivos de programa\Adobe\Reader10.0\Reader\AcroRd32.exe";
proc.StartInfo.Arguments = String.Format(@"/p /h {0}", pdfFileName);
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.Start();
Run Code Online (Sandbox Code Playgroud)
先感谢您!!!