c#中的双面打印 [英] Duplex Printing in c#

查看:1123
本文介绍了c#中的双面打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string strPrintFile = "D:\\Application2.pdf";
               ConvertImageToPdf(arrayFile, strPrintFile);
               ProcessStartInfo info = new ProcessStartInfo(strPrintFile);
               info.Verb = "Print";
               info.CreateNoWindow = true;
               info.WindowStyle = ProcessWindowStyle.Hidden;
               //fs.Close();
               Process.Start(info);







我用这段代码打印文件。

这是完美的。



现在我想要打印带有双面打印的文档。

我应该在上面的代码中执行哪些代码?




I m using this code to print a document.
this is working perfect.

now i want to print a document with Duplex printing.
which code should i do in above code?

推荐答案

这个
System.Drawing.Printing



库可以帮助您。 PrinterSettings.CanDuplex可以帮助您检查打印机是否是双面打印机。然后使用PrinterSettings.Duplex。

全部在 PrinterSettings.Duplex Property(System.Drawing.Printing) [ ^ ]和 [ ^ ] all in mdsn


" library can help you. PrinterSettings.CanDuplex can help you can check if the printer is duplex. then use PrinterSettings.Duplex.
It is all in PrinterSettings.Duplex Property (System.Drawing.Printing)[^] and [^] all is in mdsn


这篇关于c#中的双面打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆