public bool Reset() { try { if (posPrinter.DeviceEnabled) { posPrinter.DeviceEnabled = false; } if (posPrinter.Claimed) { posPrinter.Release(); } posPrinter.Close(); // posPrinter = null; } catch (PosControlException pce) { Logger.Error("PosPrinterWrapper.cs", pce.ToString()); //return false; } Open(); return(true); }
public void Close() { if (_printer != null) { _printer.Close(); } }