private void btnImprimer_Click(object sender, EventArgs e) { RPT.Calendrie_Examen rpt = new RPT.Calendrie_Examen(); RPT.R_Form_RPT frm = new RPT.R_Form_RPT(); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }
private void btnImprimerTout_Click(object sender, EventArgs e) { RPT.Liste_groupe rpt = new RPT.Liste_groupe(); rpt.SetParameterValue("@id", this.dataGridView1.CurrentRow.Cells[2].Value.ToString()); RPT.R_Form_RPT frm = new RPT.R_Form_RPT(); frm.crystalReportViewer1.ReportSource = rpt; frm.ShowDialog(); }