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))); }
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)); }
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)); }