http://community.csdn.net/Expert/topic/3769/3769900.xml?temp=.1952173

解决方案 »

  1.   

    rpt1 oCR = new rpt1();这一句有问题,你拿报表文件当类用肯定会出错的!应该用:
    ReportDocument oRD = new ReportDocument();
    oRD.Load(reportPath);
      

  2.   

    rpt1 oCR = new rpt1();这一句有问题,你拿报表文件当类用肯定会出错的!应该用:
    ReportDocument oRD = new ReportDocument();
    oRD.Load(reportPath);说明:reportPath是你的报表文件的路径.即main\rpt\rpt1,main\webform1的路径.
      

  3.   

    using CrystalDecisions.Shared;
    using CrystalDecisions.CrystalReports.Engine;rpt1 new 过没有?