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); } }
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); } }