private void showprintone_Click(object sender, EventArgs e) { Reports.OneClothRep re = new Reports.OneClothRep(); re.SetParameterValue("@id", this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); Reports.ClothesReport myform = new Reports.ClothesReport(); myform.crystalReportViewer1.ReportSource = re; myform.ShowDialog(); }
private void printOne_Click(object sender, EventArgs e) { Reports.ClothesReport report = new Reports.ClothesReport(); Reports.OneCat categories = new Reports.OneCat(); categories.SetParameterValue("@id", Convert.ToInt32(id_cat.Text)); report.crystalReportViewer1.ReportSource = categories; report.ShowDialog(); report.Refresh(); }
private void printAll_Click(object sender, EventArgs e) { Reports.ClothesReport report = new Reports.ClothesReport(); Reports.AllCategories categories = new Reports.AllCategories(); report.Refresh(); report.crystalReportViewer1.ReportSource = categories; report.ShowDialog(); report.Refresh(); }
private void showprintone_Click(object sender, EventArgs e) { int id = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells[0].Value.ToString()); Reports.ContractReport report = new Reports.ContractReport(); Reports.ClothesReport frm = new Reports.ClothesReport(); report.SetDataSource(con.GetOrderDetails(id)); frm.crystalReportViewer1.ReportSource = report; frm.ShowDialog(); }
private void showPrintAll_Click(object sender, EventArgs e) { // Crystal reports may change but theForms stay one Reports.AllClothes myreport = new Reports.AllClothes(); Reports.ClothesReport myform = new Reports.ClothesReport(); myform.Refresh(); myform.crystalReportViewer1.ReportSource = myreport; myform.Refresh(); myform.ShowDialog(); }
private void Print_Click(object sender, EventArgs e) { // newSale.Enabled = true; int id = Convert.ToInt32(con.GetLastorderIdForPrint().Rows[0][0].ToString()); Reports.ContractReport report = new Reports.ContractReport(); Reports.ClothesReport frm = new Reports.ClothesReport(); report.SetDataSource(con.GetOrderDetails(id)); frm.crystalReportViewer1.ReportSource = report; frm.ShowDialog(); }