ActiveReport ar = new ActiveReport();
ar.LoadLayout(xRead);
ar.Document.Printer.PrinterName = "";
ar.Document.Printer.PrinterSettings.PrinterName = "";
ar.Run(true);
ar.Document.Print(true, true);
这个代码我改成了 加载后就自动打印,这样确实是不报错了,但是打印的还是区的打印机的默认PaperSize A4 所以打印俩张 |