public bool CancelDocument() { PrepareDriver(); Driver.CancelCheck(); Log.AddWithCode("отмена чека по кнопке"); return(Driver.ResultCode == 0 ? true : false); }
/// <summary> /// Отмена не закрытого чека в ККТ /// </summary> public static bool CancelCashReciept(DrvFR Drv) { try { Drv.CancelCheck(); } catch { return(false); } return(true); }
private void ExecuteCancelCheck() { DrvFR driver = null; try { driver = new DrvFR(); driver.Password = 30; driver.ComputerName = Environment.MachineName; driver.UseReceiptRibbon = true; driver.Connect(); driver.CancelCheck(); driver.Disconnect(); } catch (Exception) { } finally { if (driver != null) { try { driver.Disconnect(); } catch (Exception) { } } } }