Exemple #1
0
 private void AllPrint_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         Reports.cust.FrmCustPrint fm = new Reports.cust.FrmCustPrint();
         fm.PrintALLCustomerTableAdapter.Fill(fm.SuperMarket_DBDataSetCust.PrintALLCustomer);
         fm.reportViewer2.RefreshReport();
         fm.reportViewer2.BringToFront();
         fm.reportViewer1.SendToBack();
         fm.ShowDialog();
         this.Cursor = Cursors.Default;
     }
     catch
     {
         return;
     }
 }
Exemple #2
0
 private void طباعةToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         int id;
         id = Convert.ToInt32(this.DGV_Cust.CurrentRow.Cells[0].Value);
         Reports.cust.FrmCustPrint fm = new Reports.cust.FrmCustPrint();
         fm.PrintSingleCustomerTableAdapter.Fill(fm.SuperMarket_DBDataSetCust.PrintSingleCustomer, id);
         fm.reportViewer1.RefreshReport();
         fm.reportViewer1.BringToFront();
         fm.reportViewer2.SendToBack();
         fm.ShowDialog();
         this.Cursor = Cursors.Default;
     }
     catch
     {
         return;
     }
 }