focus 专栏

--专注于.NET Web开发技术
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

ActiveReports 代码控制报表连续打印

Posted on 2008-01-08 09:21  focus  阅读(581)  评论(0编辑  收藏  举报
关键是要设置打印机的名称
ActiveReport3 rpt = new ActiveReport3();
//设置打印机
rpt.Document.Printer.PrinterSettings.PrinterName = "hp LaserJet 1300";
rpt.Run();
rpt.Document.Print(
false,false);