Load report failed this error logged when i try to open Crystal report and if i restart my iis (iisreset) then it's working.
Here's my code:
Dim objReport As New CrystalDecisions.CrystalReports.Engine.ReportClass
Dim location As String = context.Server.MapPath("../POC/POC1.rpt")
objReport.FileName = location
objReport.Load()
objR开发者_StackOverflow中文版eport.SetDataSource(dsPOC)
What could be the problem?
Try this...it will give you the perfect idea....
using System;using CrystalDecisions.CrystalReports.Engine;using CrystalDecisions.Shared;namespace Report
 {       public partial class Report : Document    
  {       public void ReportLoad()    
   {             ReportDocument reportDocument = new ReportDocument();       
 string filePath = "C:\Projects\Application\Report\CrystalReport.rpt";            reportDocument.Load(filePath);  
          crystalReportViewer.ReportSource = reportDocument; 
      }   
}}  
Thanks for your response. Now the problem solved by objReport.Dispose(). I called this Dispose Method after appending each document. The problem might be i failed to release data form memory.
regards, saj
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论