public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReport2 rpt = new CrystalReport2();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void Form4_Load(object sender, EventArgs e)
        {
            OleDbDataAdapter adtr = new OleDbDataAdapter("Select * From Guzergah", con);

            adtr.Fill(da);
            CrystalReport2 rapor = new CrystalReport2();

            rapor.SetDataSource(da);
            crystalReportViewer1.ReportSource = rapor;
        }