Example #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         Reports.SuppliersPrint.SuppliersPrintMicro fm = new Reports.SuppliersPrint.SuppliersPrintMicro();
         fm.PrintALLSuppliersTableAdapter.Fill(fm.SuperMarket_DBDataSet.PrintALLSuppliers);
         //fm.reportViewer2.RefreshReport();
         //fm.reportViewer2.BringToFront();
         //fm.reportViewer1.SendToBack();
         fm.ShowDialog();
         this.Cursor = Cursors.Default;
     }
     catch
     {
         return;
     }
 }
Example #2
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         int id;
         id = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells[0].Value);
         Reports.SuppliersPrint.SuppliersPrintMicro fm = new Reports.SuppliersPrint.SuppliersPrintMicro();
         fm.PrintSingleSuppliersTableAdapter.Fill(fm.SuperMarket_DBDataSet.PrintSingleSuppliers, id);
         //fm.reportViewer1.RefreshReport();
         //fm.reportViewer1.BringToFront();
         //fm.reportViewer2.SendToBack();
         fm.ShowDialog();
         this.Cursor = Cursors.Default;
     }
     catch
     {
         return;
     }
 }