我调试时去现了下面的问题,请大家帮我看下
错误 The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?)
错误 The type or namespace name 'CrystalReport1' could not be found (are you missing a using directive or an assembly reference?)
哥们,请不要恶意灌水
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Enterprise;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.Shared; private void reportload()
{
SqlConnection connection = new SqlConnection();
connection.ConnectionString = "data source=192.168.33.99;database=EmailManage;user id=czping;password=trio"; SqlDataAdapter da = new SqlDataAdapter("select * from logdetails", connection);
DataSet dt = new DataSet();
da.Fill(dt); CrystalReport1 cr = new CrystalReport1();
cr.SetDataSource(dt);
this.CrystalReportViewer1.ReportSource = cr; }
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Enterprise;
using CrystalDecisions.CrystalReports;
using CrystalDecisions.Shared;
还有我最后问一遍你报表的路径是在根目录下还是你自己移动过位置?
OK?
using CrystalDecisions.ReportSource;