コード例 #1
0
 internal bool Print()
 {
     if (batchSet.ShowDialog() == DialogResult.OK)
     {
         if (PrintUtil.ShowPrintDlg(batchSet.PrintListData.ProjectPDF) == DialogResult.OK)
         {
             backgroundWorker.RunWorkerAsync("");
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
 private void printPage_Click(object sender, EventArgs e)
 {
     if (PrintUtil.ShowPrintDlg() == DialogResult.OK)
     {
         if (report.ProjectDataManager != null)
         {
             report.MutliProjectPrint();
         }
         else
         {
             report.Print();
         }
     }
 }
コード例 #3
0
 public void print_Click(object sender, EventArgs e)
 {
     if (curReport != null)
     {
         if (curReport.IsDoc)
         {
             //打印WORD格式报表
             ReportHelper.PrintWord(curReport.DocPath, curReport.Data.MacorsVerbCollection);
         }
         else
         {
             PrintUtil.ShowPrintDlg();
             curReport.InitReportData(this.projectDataManager, 0);
             curReport.MutliProjectPrint();
         }
     }
 }