Exemple #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportPieChart rpt = new CrystalReportPieChart();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            DataSetForCrystalReport ds = new DataSetForCrystalReport();
            MembersTableAdapter     ta = new MembersTableAdapter();
            CrystalReportPieChart   cr = new CrystalReportPieChart();

            ta.Fill(ds.Members);
            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
        }