以下是读取EXCEL内容并和水晶报表绑定显示,之前做了一个和DataGrid绑定没有问题。string strcon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath + ";Extended Properties='Excel 8.0;HDR=yes;IMEX=1';";
            OleDbConnection mycon = new OleDbConnection(strcon);
            string strcom = "select * from ["SHEET1"]";
            mycon.Open();
            OleDbDataAdapter mycommand = new OleDbDataAdapter(strcom, mycon);
            DataSet ds = new DataSet();          
              DataTable tbl = new DataTable("sdf");
              mycommand.Fill(tbl);
              ds.Tables.Add(tbl); ;
              CrystalReport1 rep = new CrystalReport1();
              rep.SetDataSource(ds);
提示:该报表不包含表Datatable里是有内容的,怎么会提示这个?