コード例 #1
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rpt_score_details rpt = new rpt_score_details();
     rpt.Site = this.Site;
     return rpt;
 }
コード例 #2
0
        //---tool strip menu for getting the exam details--->
        private void eXAMDETAILSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_rpt_form frm_rpt_form = new frm_rpt_form();
            DataSet rpt_dataset = populate_score();

            ReportDocument rpt = new rpt_score_details();
            rpt.SetDataSource(rpt_dataset);

            frm_rpt_form.CrystalReport.ReportSource = rpt;
            frm_rpt_form.CrystalReport.Refresh();

            frm_rpt_form.Show();
        }