Example #1
0
 public void m_mthPrint()
 {
     if (m_objBatchReportPrint == null)
     {
         return;
     }
     try
     {
         for (int i = 0; i < m_objBatchReportPrint.Length; i++)
         {
             if (m_objBatchReportPrint[i] != null)
             {
                 m_objPrintInstance = m_objBatchReportPrint[i];
                 m_printDoc.Print();
             }
         }
     }
     catch (System.ComponentModel.Win32Exception es)
     {
         string strMess = "打印错误:" + es.Message;
         MessageBox.Show(strMess, "iCare-批量打印", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
 private void m_printDoc_EndPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     m_objPrintInstance = null;
 }