private void Print_selctd_Click(object sender, EventArgs e)
 {
     RPRT.PRNT_SNGL_PRD            rprt = new RPRT.PRNT_SNGL_PRD();
     RPRT.CrystalReport_SNGL_PRDCT prd  = new RPRT.CrystalReport_SNGL_PRDCT();
     prd.SetParameterValue("@ID", dataGridView1.CurrentRow.Cells[0].Value.ToString());
     rprt.crystalReportViewer1.ReportSource = prd;
     rprt.Show();
 }
示例#2
0
 private void prnt_all_Click(object sender, EventArgs e)
 {
     RPRT.CrystalReport_All_CAT cats = new RPRT.CrystalReport_All_CAT();
     RPRT.PRNT_SNGL_PRD         frm  = new RPRT.PRNT_SNGL_PRD();
     cats.Refresh();
     frm.crystalReportViewer1.ReportSource = cats;
     frm.Text = "Print All Categories";
     frm.Show();
 }
示例#3
0
 private void btnPRNT_Click(object sender, EventArgs e)
 {
     RPRT.Rprt_Orders rprt = new RPRT.Rprt_Orders();
     rprt.SetParameterValue("@id_order", int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()));
     // rprt.Refresh();
     RPRT.PRNT_SNGL_PRD frm = new RPRT.PRNT_SNGL_PRD();
     frm.crystalReportViewer1.ReportSource = rprt;
     frm.Show();
 }
示例#4
0
 private void prnt_Curr_Click(object sender, EventArgs e)
 {
     RPRT.CrystalReport_Sngle_Cat SNcat = new RPRT.CrystalReport_Sngle_Cat();
     RPRT.PRNT_SNGL_PRD           frm   = new RPRT.PRNT_SNGL_PRD();
     SNcat.Refresh();
     SNcat.SetParameterValue("@ID", int.Parse(textBox_CatID.Text));
     frm.crystalReportViewer1.ReportSource = SNcat;
     frm.Text = "Print Current Category";
     frm.Show();
 }