public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReportgorevi rpt = new CrystalReportgorevi(); rpt.Site = this.Site; return(rpt); }
private void gorevirapor_Load(object sender, EventArgs e) { SqlDataAdapter adtr = new SqlDataAdapter("select * from gorevi", con); adtr.Fill(tablo); CrystalReportgorevi rapor = new CrystalReportgorevi(); rapor.SetDataSource(tablo); crystalReportViewer1.ReportSource = rapor; }
private void button1_Click(object sender, EventArgs e) { tablo.Clear(); SqlDataAdapter adtr = new SqlDataAdapter("select * from gorevi where no='"+textBox1.Text+"'", con); adtr.Fill(tablo); CrystalReportgorevi rapor = new CrystalReportgorevi(); rapor.SetDataSource(tablo); crystalReportViewer1.ReportSource = rapor; }