public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crSimpleReport rpt = new crSimpleReport(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { dsSimpleReport ds = new dsSimpleReport(); dsSimpleReportTableAdapters.CustomerTableTableAdapter ct = new dsSimpleReportTableAdapters.CustomerTableTableAdapter(); ct.Fill(ds.CustomerTable); crSimpleReport cr = new crSimpleReport(); cr.SetDataSource(ds); crystalReportViewer1.ReportSource = cr; }