///<summary></summary> private void PrintReport() { try{ if (Printers.SetPrinter(pd2, PrintSituation.Default)) { pd2.Print(); } } catch { MessageBox.Show(Lan.g(this, "Printer not available")); } }
private void OnPrint_Click() { if (!Printers.SetPrinter(Document, Sit)) { return; } try{ Document.Print(); } catch { MessageBox.Show(Lan.g(this, "Printer not available")); } DialogResult = DialogResult.OK; }