Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            int Order_ID = Convert.ToInt32(DGORDERSSEARCH.CurrentRow.Cells[0].Value);

            RPT.CrystalReport1 OrderReport = new RPT.CrystalReport1();
            RPT.FRM_RPT        frm         = new RPT.FRM_RPT();
            OrderReport.SetParameterValue("@id_order", Order_ID);
            frm.crystalReportViewer1.ReportSource = OrderReport;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Esempio n. 2
0
        private void BTNPRINT_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            int Order_ID = Convert.ToInt32(order.GET_LAST_ORDER_ID_For_Print().Rows[0][0]);

            RPT.CrystalReport1 OrderReport = new RPT.CrystalReport1();
            RPT.FRM_RPT        frm         = new RPT.FRM_RPT();
            OrderReport.SetParameterValue("@id_order", Order_ID);
            frm.crystalReportViewer1.ReportSource = OrderReport;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }