private void btnPrintReceipt_Click(object sender, EventArgs e) { try { Reports.PrintReceipt pr = new Reports.PrintReceipt(); pr.access = lblReceipt.Text; pr.Show(); } catch (Exception ex) { CommonFunctions.ShowError("Please select a record and try again !" + ex.Message); } }
private void buttonPrint_Click(object sender, EventArgs e) { Reports.PrintReceipt pr = new Reports.PrintReceipt(); pr.access = lblReceiptNo.Text; pr.Show(); }