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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void FormGraphPourcentage_Load(object sender, EventArgs e)
        {

            DataSetBib ds = new DataSetBib();
            DataSetBibTableAdapters.categorieTableAdapter dacat = new DataSetBibTableAdapters.categorieTableAdapter();
            DataSetBibTableAdapters.livreTableAdapter dalivre = new DataSetBibTableAdapters.livreTableAdapter();
            dacat.Fill(ds.categorie);
            dalivre.Fill(ds.livre);

            CrystalReportGraph rep = new CrystalReportGraph();
            rep.SetDataSource(ds);
            crystalReportViewerGraph.ReportSource = rep;

        }