示例#1
0
 private void btn_Print_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     Rpt.frm_ReportProduct frm    = new Rpt.frm_ReportProduct();
     Rpt.rpt_Order         Report = new Rpt.rpt_Order();
     Report.SetDataSource(Ord.ReportOrder(txtB_OrderNo.Text));
     frm.crystalReportViewer1.ReportSource = Report;
     frm.Text = "Order";
     frm.ShowDialog();
     this.Cursor = Cursors.Default;
 }
示例#2
0
 private void btn_PrintOrder_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     Rpt.frm_ReportProduct frm    = new Rpt.frm_ReportProduct();
     Rpt.rpt_Order         Report = new Rpt.rpt_Order();
     Report.SetDataSource(Ord.ReportOrder(dgv_Orders.CurrentRow.Cells[0].Value.ToString()));
     frm.crystalReportViewer1.ReportSource = Report;
     frm.Text = "Order";
     frm.ShowDialog();
     this.Cursor = Cursors.Default;
 }