CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed

  • Thread starter Thread starter Farhan Ahmed via .NET 247
  • Start date Start date
F

Farhan Ahmed via .NET 247

(Type your message here)
I am using Win2003,making a report every thing is fine ds already filled but when i m calling viewer
to call report error comming

CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed

my code is:

Dim connection As New OleDbConnection("PROVIDER=SQLOLEDB;Server=saima;Database=INetBank;UID=realm;PWD=friend")

Dim command As New OleDbCommand("spStatByPeriod", connection)
command.CommandType = CommandType.StoredProcedure

Dim ada As New OleDbDataAdapter(command)

Dim ds1 As New DataSet

ada.Fill(ds1)
Dim dt As DataTable = ds1.Tables(0)
Dim objReport As New crStatByPeriod
objReport.Database.Tables(0).SetDataSource(ds1.Tables(0))
CrystalReportViewer1.ReportSource = objReport

please help me.
 
Back
Top