private void imgPrint_Click(object sender, RoutedEventArgs e) { if (this.Document == null) { return; } if (this.cboPrinter.SelectedItem == null) { Util.ShowError("Please select a Printer."); return; } ProcessWindow pw = new ProcessWindow("Sending to Print ..."); try { PrinterControl.PrintDocumentsInBatch(new List <Document> { this.Document }, (Printer)this.cboPrinter.SelectedItem); //(new WMSServiceClient()).PrintDocumentsInBatch(new List<Document> { this.Document }, // ((Printer)this.cboPrinter.SelectedItem).PrinterPath, null); if (NewStatus != null) { this.Document.DocStatus = NewStatus; (new WMSServiceClient()).UpdateDocument(this.Document); } } catch { } finally { pw.Close(); } }