ReportDocument P_Doc = new ReportDocument();
string reportPath = Server.MapPath("CrystalReport1.rpt");P_Doc.Load(reportPath);其中Server是不是需要引用,应该引用什么?

解决方案 »

  1.   

    using CrystalDecisions.Shared; 
    using CrystalDecisions.ReportSource; 
    using CrystalDecisions.CrystalReports.Engine; 
      

  2.   

    这几个引用都有,错误 1 当前上下文中不存在名称“Server”
    主要是Server是做什么用的是什么意思,我不太理解
      

  3.   

    using CrystalDecisions.Shared;  
    using CrystalDecisions.CrystalReports.Engine; 
      

  4.   

    有这个引用但是当前上下文中不存在名称“Server” 
    “Server” 
    是什么意思?????
      

  5.   

    string reportPath = Server.MapPath("CrystalReport1.rpt"); 
    是取当前目录下的CrystalReport1.rpt文件
      

  6.   

    你看你是否有CrystalReport1.rpt这个文件
      

  7.   

    Server 是本身form里面的一个对象 用me可以点出来的。