示例#1
0
        private void Form5_Load(object sender, EventArgs e)
        {
            OleDbDataAdapter adtr = new OleDbDataAdapter("Select * From Otobus", con);

            adtr.Fill(da);
            CrystalReport3 rapor = new CrystalReport3();

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