public void Print() { if (_printer == null || string.IsNullOrEmpty(_printer.ShareName)) { return; } AsyncPrintTask.Exec(false, () => PrintJobFactory.CreatePrintJob(_printer, _printerService).DoPrint(_document), _logService); }
public void PrintObject(object item, Printer printer, PrinterTemplate printerTemplate) { var formatter = DocumentFormatters.FirstOrDefault(x => x.ObjectType == item.GetType()); if (formatter != null) { var lines = formatter.GetFormattedDocument(item, printerTemplate); if (lines != null) { AsyncPrintTask.Exec(false, () => PrintJobFactory.CreatePrintJob(printer, this).DoPrint(lines), _logService); } } }
public void Execute() { AsyncPrintTask.Exec(_highPriority, () => InternalExecutePrintJob(_printJob), _logService); }
public void Print() { var ticket = _highPriority ? _ticket : ObjectCloner.Clone2(_ticket); AsyncPrintTask.Exec(_highPriority, () => InternalPrint(ticket, _printJob, _orderSelector), _logService); }