public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crPie rpt = new crPie(); rpt.Site = this.Site; return(rpt); }
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; }