110,536
社区成员
发帖
与我相关
我的任务
分享
for(int a =0 ; a<2; a++)
{
StandardPrintController spc = new StandardPrintController();
Print_doc.PrintController = spc;
if(a==0)
Print_doc.PrinterSettings.PrinterName = "Microsoft XPS Document Writer";
else Print_doc.PrinterSettings.PrinterName ="其他打印机";
Print_doc.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
Print_doc.Print();
}