web上沒做過C/S上作過,沒問題

解决方案 »

  1.   

    我知道啊。c/s上是没有问题,有在web上做过的吗?
      

  2.   

    web上的一样做,区别不大
    using CrystalDecisions.Shared ;
    using CrystalDecisions.CrystalReports .Engine ;
    ReportDocument oRpt = new ReportDocument();
    oRpt.Load("c:\\inetpub\\wwwroot\\\crystal1.rpt");
      

  3.   

    这是网页错误:
    Server Error in '/Web/WebApplication2' Application.
    --------------------------------------------------------------------------------Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
    [NullReferenceException: Object reference not set to an instance of an object.]
       CrystalDecisions.Web..get_7()
       CrystalDecisions.Web.CrystalReportViewer.OnInit(EventArgs e)
       System.Web.UI.Control.InitRecursive(Control namingContainer)
       System.Web.UI.Control.InitRecursive(Control namingContainer)
       System.Web.UI.Control.InitRecursive(Control namingContainer)
       System.Web.UI.Page.ProcessRequestMain() 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0