예제 #1
0
        public async Task PrintLabelCE(LabelModel labelModel, tblTowarGeowlokninaParametry geowlokninaParametry)
        {
            _printerName = GetPrinterName();

            if (string.IsNullOrWhiteSpace(_printerName))
            {
                return;
            }

            if (!labelModel.IsValid)
            {
                return;
            }

            await Task.Run(() => RawPrinterHelper.SendStringToPrinter(_printerName, _zebraLabelGenerator.EtykietaCE_PL(labelModel, geowlokninaParametry)));
        }
예제 #2
0
        public async Task PrintAsync(string label)
        {
            _printerName = GetPrinterName();

            if (string.IsNullOrWhiteSpace(_printerName))
            {
                return;
            }

            if (string.IsNullOrEmpty(label))
            {
                return;
            }

            await Task.Run(() => RawPrinterHelper.SendStringToPrinter(_printerName, label));
        }
예제 #3
0
        public async Task PrintAsync(LabelModel labelModel)
        {
            _printerName = GetPrinterName();

            if (string.IsNullOrWhiteSpace(_printerName))
            {
                return;
            }

            if (!labelModel.IsValid)
            {
                return;
            }

            string label = _zebraLabelGenerator.EtykietaProdukcja(labelModel);

            await Task.Run(() => RawPrinterHelper.SendStringToPrinter(_printerName, label));
        }