Ejemplo n.º 1
0
 private void btnrintCurrent_Click(object sender, EventArgs e)
 {
     RPT.rpt_single_category my_report_single_cat = new RPT.rpt_single_category();
     RPT.FRM_RPT_PRODUCTcs   mForm = new RPT.FRM_RPT_PRODUCTcs();
     my_report_single_cat.Refresh();
     my_report_single_cat.SetParameterValue("@ID", Convert.ToInt32(txtID.Text));
     mForm.crystalReportViewer1.ReportSource = my_report_single_cat;
     mForm.ShowDialog();
 }
 private void btnPrintCurrent_Click(object sender, EventArgs e)
 {
     RPT.rpt_single_category rpt = new RPT.rpt_single_category();
     RPT.FRM_RPT_PRODUCT     frm = new RPT.FRM_RPT_PRODUCT();
     rpt.Refresh();
     rpt.SetParameterValue("@id", Convert.ToInt32(txtID.Text));
     frm.crystalReportViewer1.ReportSource = rpt;
     frm.ShowDialog();
 }