Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crPie rpt = new crPie();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void frmPieChart_Load(object sender, EventArgs e)
        {
            LibrarySet ds = new LibrarySet();

            LibrarySetTableAdapters.BooksTableAdapter ta = new LibrarySetTableAdapters.BooksTableAdapter();
            ta.Fill(ds.Books);

            crPie cr = new crPie();

            cr.SetDataSource(ds);

            crvPieChart.ReportSource = cr;
        }