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