CrystalReport1.rpt是我在项目内创建的,但是ReportDoc=new CrystalReport1();语句出现以下错误:
Error 1 The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?)
请问如何处理?
2:使用ReportDoc = new ReportDocument();
ReportDoc.Load(Server.MapPath("CrystalReport1.rpt"));
后在
ReportDoc.DataDefinition.FormulaFields["字段" + (i + 1).ToString()].Text = "{企业部门人员信息." + ssa[i].ToString() + "}";
句子中出错,检查FormulaFields时集合内控件数为0,没有我添加的控件字段。