コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportgorevi rpt = new CrystalReportgorevi();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 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;
    
 }