Example #1
0
        public void Print(byte[] data)
        {
            UsbPrinterConnector connector = new UsbPrinterConnector(Settings.PrinterName);

            connector.BeginSend();
            connector.Send(data, 0, data.Length);
        }
Example #2
0
        public bool?Print(byte[] data)
        {
            UsbPrinterConnector connector = new UsbPrinterConnector(Settings.PrinterName);

            if (connector.BeginSend())
            {
                return(connector.Send(data, 0, data.Length) == data.Length);
            }
            return(false);
        }
Example #3
0
 public void Print(byte[] data)
 {
     UsbPrinterConnector connector = new UsbPrinterConnector(Settings.PrinterName);
     connector.BeginSend();
     connector.Send(data, 0, data.Length);
 }