string strReportDocument = this.Page.Server.MapPath("~\\Report\\rptDailyAnisystReport.rpt");

解决方案 »

  1.   

    to dengchenlu :還是一樣的問題
      

  2.   

    加载错误比较烦人---用控件试试  , 帮你顶
     CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport.rpt"));
            CrystalReportSource1.ReportDocument.SetDatabaseLogon("sa", "", "(local)", "students");
            CrystalReportSource1.DataBind();
            CrystalReportViewer1.ReportSource = CrystalReportSource1;
            CrystalReportViewer1.DataBind();
      

  3.   

    string strReportDocument = this.Page.Server.MapPath(@"..\Report\rptDailyAnisystReport.rpt"); 
    这个地方错 
    一般都是文件路径不对 
    你可以跟踪调试下,或者去路径下看看这个文件存在不 网上有人遇到这个问题,不过是英文 
    http://www.vbforums.com/showthread.php?t=364112
      

  4.   

    http://www.prd-software.com.au/prd/support/kb/kbarticle.asp?id=59