Exemple #1
0
        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);
        }
Exemple #2
0
 public void Close()
 {
     if (_printer != null)
     {
         _printer.Close();
     }
 }