コード例 #1
0
 private void btnprint_Click(object sender, EventArgs e)
 {
     RPT.RRM_Reports     frm = new RPT.RRM_Reports();
     RPT.rpt_order_print rop = new RPT.rpt_order_print();
     rop.SetParameterValue("@order_id", ClassOrder.max_id_order());
     frm.crystalReportViewer1.ReportSource = rop;
     frm.ShowDialog();
 }
コード例 #2
0
 private void btnPrintSelected_Click(object sender, EventArgs e)
 {
     RPT.RRM_Reports     frm = new RPT.RRM_Reports();
     RPT.rpt_order_print rop = new RPT.rpt_order_print();
     rop.SetParameterValue("@order_id", dgvOrderAll.SelectedRows[0].Cells[0].Value);
     frm.crystalReportViewer1.ReportSource = rop;
     frm.ShowDialog();
 }