Beispiel #1
0
        private void Aligiisrapor_Load(object sender, EventArgs e)
        {
            SqlDataAdapter adtr = new SqlDataAdapter("select * from aldigi_is", con);

            adtr.Fill(tablo);
            CrystalReport1aldigiis rapor = new CrystalReport1aldigiis();

            rapor.SetDataSource(tablo);
            crystalReportViewer1.ReportSource = rapor;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            tablo.Clear();
            SqlDataAdapter adtr = new SqlDataAdapter("select * from aldigi_is where insaat_kodu='" + textBox1.Text + "'", con);

            adtr.Fill(tablo);
            CrystalReport1aldigiis rapor = new CrystalReport1aldigiis();

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