所以我有下面的代码,当对话框打开时,它显示打印机设置已更改为双面打印,但是当我单击确定并打印时,它不会打印双面,但是当我手动选择双面时,它确实打印正确。任何想法可能是什么情况?在此先感谢您的帮助。ASP.NET 网络应用程序
using (PrintDialog pd = new PrintDialog())
{
PrinterSettings ps = new PrinterSettings();
ps.Duplex = Duplex.Horizontal;
pd.PrinterSettings = ps;
// pd.UseEXDialog = true;
if (pd.ShowDialog() == DialogResult.OK)
{
ProcessStartInfo info = new ProcessStartInfo(filePath);
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
}
}