Problem w/Viewing crystal reports

Ok, I am having a similar problem but yet I think its different from everything listed above. My error occurs on the line where i set the report datasource -- rpt.SetDataSource(ds); here is the exact error.
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed.

I receive this error on any non-development computer (i.e. installed client versions of the application). It is a windows application and we use cvs for source control. it seems to work for other developers that have the exact same path as mine (c:\\cvs\\....) although im not for sure if that has anything to do with why it works on their machines. the compile option is set to include it as an embedded resource (as all reports are set to). the error only occurs for one report and all other reports work fine. this leads me to believe that is not a c.r. licensing issue or any engine type error. any advice is greatly appreciated as im at my wits end!
thanks in advance!
 
i have tried all of the above and it still doesnt work. can someone help pls? i cannot hardcode the source as i have lots of report and database to connect ... help!!

below is a snipet of my code
=======================

Dim myReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim vReportPath, vInitSelectionFormula As String




vReportPath = "x:\\CrystalReports\" + Trim(vReportName) + ".rpt"

myReport.Load(vReportPath)




Me.ReportViewer1.Visible = True
Me.ReportViewer1.SelectionFormula = vReportsql


If vDateSelection = "Y" Then
Me.ReportViewer1.ParameterFieldInfo = paramFields
End If

Dim test = Me.ReportViewer1.ParameterFieldInfo(3)
ReportViewer1.ReportSource = myReport
ReportViewer1.ReportSource = "x:\\Crystal Reports\" + Trim(vReportName) + ".rpt"

Dim myConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo



With myConnectionInfo
.ServerName = "nftek"
.DatabaseName = ""
.UserID = "ftcrs"
.Password = "thoughts"
End With

Dim myTableLogonInfo = New CrystalDecisions.Shared.TableLogOnInfo
Dim myDatabase = myReport.database
Dim myTables = myDatabase.Tables
Dim myTable As CrystalDecisions.CrystalReports.Engine.Table

For Each myTable In myTables
myTableLogonInfo = myTable.LogOnInfo
myTableLogonInfo.ConnectionInfo = myConnectionInfo
myTable.ApplyLogOnInfo(myTableLogonInfo)
Next
 
Im experiencing this problem when I view slightly move advanced reports on my development computer.

All the reports I have built include at least one subreport. It seems that if I load a subreport on its own the crystal viewer has no trouble. If I load a report that contains a subreport Im getting this "load report failed" error. This occurs on my development computer (VS.Net 2003 and Crystal Reports 9 Dev), and any client I install my compiled app to.

Please help, Im pulling my hair out here. Is it something simple Im overlooking?

Regards

Martin
 
Yavor said:
Im writing a c# desktop application, using CrystalReports. It works fine on WinXP and supposedly well enough on Win2000, but i have that "Load report Failed" problem on win98. Itried several approaches. With an external .rpt file, with an embedded .rpt and nothing so far. I read the document about this thing on the CrystalDecisions site: http://support.crystaldecisions.com/library/kbase/articles/c2011640.asp

The strange thing was that the regsvr32 executable from win (* refused to work with crqe.dll so i used the one i found in WinXP. Never the less i still get that annoying message.

Can anyone Help?

10x in advance
I faced the same problem now. Did you solve the problem?
 
Back
Top