【问题标题】:Print without Printer selection dialog不使用打印机选择对话框打印
【发布时间】:2013-04-23 13:17:47
【问题描述】:

我想直接打印我的水晶报表,而不弹出打印机选择。 我该怎么做?

myReportDocument.SetDataSource(saveDataSet);
//Print
crystalReportViewer1.ShowRefreshButton = false;
crystalReportViewer1.ShowCloseButton = false;
crystalReportViewer1.ShowGroupTreeButton = false;
crystalReportViewer1.ReportSource = myReportDocument;
crystalReportViewer1.PrintReport();

我正在使用默认(也是唯一的)打印机。

【问题讨论】:

    标签: c# crystal-reports printing report


    【解决方案1】:
    myReportDocument.PrintOptions.PrinterName = "PRINTER_NAME";
    myReportDocument.PrintToPrinter(copies, collate, startPage, endPage);
    

    【讨论】:

      猜你喜欢
      • 2017-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多