public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { raporadmin rpt = new raporadmin(); rpt.Site = this.Site; return(rpt); }
private void adminraporlama_Load(object sender, EventArgs e) { try { baglan.Open(); DataTable tb = new DataTable(); OleDbDataAdapter adp = new OleDbDataAdapter("select * from ADMIN", baglan); adp.Fill(tb); baglan.Close(); raporadmin rpr = new raporadmin(); rpr.SetDataSource(tb); crystalReportViewer1.ReportSource = rpr; } catch (Exception) { MessageBox.Show("Raporlama İşlemi Yapılamadı Tekrar Deneyiniz"); } }