由于我的身边没有打印机 现在写的个东西要求多台打印机能同时打印机 同一文档 程序写出来 没法验证  所以发帖请教下 谢谢   大致如下 : 这样成么??
for(int i =0 ; i<0; i++)
{
                                       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();
}
          

解决方案 »

  1.   

    for(int a =0 ; a<0; a++)
    上面写错了 
      

  2.   

    for(int a =0 ; a <2; a++) 还写错了 晕了
      

  3.   


    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();
    }