请教:CrystalReport1 oCR = new CrystalReport1();
提示错误 1 找不到类型或命名空间名称“CrystalReport1”(是否缺少 using 指令或程序集引用?)
tring strProvider = "Server=(local);DataBase=xrfdc;UID=sa;PWD=";
CrystalReport1 oCR = new CrystalReport1();
DataSet ds = new DataSet();//生成数据集
SqlConnection MyConn = new SqlConnection(strProvider);
MyConn.Open();
string strSel = "Select * from ckd";
SqlDataAdapter MyAdapter = new SqlDataAdapter(strSel, MyConn);
MyAdapter.Fill(ds, "ckd");
oCR.SetDataSource(ds);
this.rptVew.ReportSource = oCR;