private void btn_CategoryReport_Click(object sender, EventArgs e) { Rpt.rpt_CategoryReport CatReport = new Rpt.rpt_CategoryReport(); Rpt.frm_ReportProduct frm = new Rpt.frm_ReportProduct(); CatReport.SetParameterValue("@ID", Convert.ToInt32(txtb_IDCategory.Text)); frm.crystalReportViewer1.ReportSource = CatReport; frm.ShowDialog(); }
private void btn_PrintProduct_Click(object sender, EventArgs e) { Rpt.rpt_ProductReport PReport = new Rpt.rpt_ProductReport(); PReport.SetParameterValue("@ID", this.dataGridV_Product.CurrentRow.Cells[0].Value.ToString()); Rpt.frm_ReportProduct frm = new Rpt.frm_ReportProduct(); frm.crystalReportViewer1.ReportSource = PReport; frm.ShowDialog(); }
private void btn_AllCategoriesReport_Click(object sender, EventArgs e) { Rpt.rpt_AllCategoriesReport CatReport = new Rpt.rpt_AllCategoriesReport(); Rpt.frm_ReportProduct frm = new Rpt.frm_ReportProduct(); CatReport.Refresh(); frm.crystalReportViewer1.ReportSource = CatReport; frm.Text = "Categories Report"; frm.ShowDialog(); }
private void btn_PrintAllProducts_Click(object sender, EventArgs e) { Rpt.rpt_AllProductsReport APReport = new Rpt.rpt_AllProductsReport(); Rpt.frm_ReportProduct frm = new Rpt.frm_ReportProduct(); APReport.Refresh(); frm.crystalReportViewer1.ReportSource = APReport; frm.Text = "Report All Products"; frm.ShowDialog(); }
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; }
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; }