Exemple #1
0
        public MotorolaDriver()
        {
            _reader = new Reader();

            _readerData = new Symbol.Barcode.ReaderData(Symbol.Barcode.ReaderDataTypes.Text, Symbol.Barcode.ReaderDataLengths.MaximumLabel);

            _reader.Actions.Enable();

            _reader.Decoders.DisableAll();

            _reader.Decoders.UPCA.Enabled          = true;
            _reader.Decoders.UPCA.ReportCheckDigit = true;

            _reader.Decoders.UPCE0.Enabled          = true;
            _reader.Decoders.UPCE0.ReportCheckDigit = true;

            _reader.Decoders.CODE39.Enabled          = true;
            _reader.Decoders.CODE39.ReportCheckDigit = true;

            _reader.Decoders.EAN8.Enabled        = true;
            _reader.Decoders.EAN8.ConvertToEAN13 = true;

            _reader.Decoders.CODE128.Enabled = true;
            _reader.Decoders.EAN13.Enabled   = true;

            _reader.Decoders.QRCODE.Enabled = true;

            _reader.ReadNotify += new EventHandler(_reader_ReadNotify);

            _reader.Actions.Read(_readerData);
        }
Exemple #2
0
        private void PartShow_Load(object sender, EventArgs e)
        {
            loadRegVals();

            myReader     = new Symbol.Barcode.Reader();
            myReaderData = new Symbol.Barcode.ReaderData(Symbol.Barcode.ReaderDataTypes.Text, 7905);
            myReader.Actions.Enable();
            myReader.ReadNotify += new EventHandler(myReader_ReadNotify);
            myReader.Actions.Read(myReaderData);
        }
Exemple #3
0
        public void Dispose()
        {
            if (_reader != null)
            {
                try
                {
                    _reader.Actions.Flush();
                    _reader.Actions.Disable();
                }
                catch
                {
                }

                _reader.Dispose();
                _reader = null;
            }
        }