当前位置:编程学习 > C#/ASP.NET >>

【求助】c# 如何实现对pdf的打印,能设置双面打印、页码范围等

c#中 用printdocument方法貌似只能打文本
而用Process 时 ProcessStartInfo不会调整打印属性。

                PrintDocument pd = new PrintDocument();
                Process p = new Process();
                ProcessStartInfo startInfo = new ProcessStartInfo();
                startInfo.CreateNoWindow = true;
                startInfo.WindowStyle = ProcessWindowStyle.Hidden;                
                startInfo.UseShellExecute = true;                
                startInfo.FileName = filePath;                
                startInfo.Verb = "print";              
                startInfo.Arguments = @"/p /h \" + filePath + "\"\"" + pd.PrinterSettings.PrinterName + "\"";
                p.StartInfo = startInfo;               
                p.Start();                
                p.WaitForExit();

以上代码,只能单面打印,更进一步的设置(双面打印、页码范围)就无能为力了。。。 
               
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,