Forum Moderators: open

Message Too Old, No Replies

LoadSaveReportException

         

fsc1999

9:07 pm on Jun 7, 2004 (gmt 0)

10+ Year Member



I don't know why this thing won't load. It makes no sense.

My code....

Dim isItThere As Boolean = File.Exists("c:\\Reports\\OracleCopy\\6106c.rpt")
crReportDocument.Load("c:\\report.rpt", OpenReportMethod.OpenReportByTempCopy)

Load report failed. at .F(String , EngineExceptionErrorID 
)
at .B(String , Int32 )
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
reportName, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String
reportName, OpenReportMethod openMethod)
at EC_MachineC.CrystalForm.Page_Load(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\EC_MachineC\CrystalForm.aspx.vb:line 55

I've tried doing the path as c:\report.rpt AND as c:\\report.rpt

If you have ANY suggestions, please send them my way!

fsc1999

4:25 pm on Jun 8, 2004 (gmt 0)

10+ Year Member



If anyone else has this problem, this was my solution:

My references were referring to the Crystal Reports 1.0 library instead of the 2.0.

The following references were pointing to the 9.1.5000.0 version of themselves. The correct versions were the 9.2.3300.0 versions.

CrystalDecisions.CrystalReporty.Engine
CrystalDecisions.Enterprise.Desktop.Report
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.InfoStore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Web

Hope this helps anyone how had that error.