Ejemplo n.º 1
0
 public bool PrintTable(ref CustomStyleDataGrid dataGridView, string strTitle, List <PrinterItems> _PIHead, List <PrinterItems> _PIFoot, bool _bShow)
 {
     try
     {
         return(DataGridPrintToolsQD.Print(dataGridView, dataGridView.Parent, strTitle, _PIHead, _PIFoot, _bShow));
     }
     catch (Exception exception)
     {
         this.loger.Info("print:" + exception.Message);
         ExceptionHandler.HandleError(exception);
         return(false);
     }
 }
Ejemplo n.º 2
0
 public bool PrintTableSerial(ref CustomStyleDataGrid dataGridView, string strTitle, List <PrinterItems> _PIHead, List <PrinterItems> _PIFoot, bool _bShow, bool _isSerialPrint, string showText)
 {
     try
     {
         return(DataGridPrintToolsQD.PrintSerial(dataGridView, dataGridView.Parent, strTitle, _PIHead, _PIFoot, _bShow, _isSerialPrint, showText));
     }
     catch (Exception exception)
     {
         this.loger.Info("print:" + exception.Message);
         if (exception.Message.Equals("用户放弃连续打印"))
         {
             throw exception;
         }
         return(false);
     }
 }