Invalid Report Source Problem ! -
01-25-2005
, 08:50 PM
I just transfered my VS.NET 2002 app (Windows App) to VS.NET 2003 version.
But I cannot run the reports through crystal report viewer. It says that
Invalid Report
Data Source while these reports run fine in version 2002. And I can easily
edit
them in version 2003 but during runtime it says invalid report source. I
have also applied
all the service packs too but they did not work.
Please advise!
My Code is Like that :
---------------------------------------------------------------------
Private Sub CrvLuckyDrawResults_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CrvLuckyDrawResults.Load
Try
Dim myReport = New RptDrawResults()
Dim sql As String
Dim ds As New DsLdraw()
Dim dc As New OleDbConnection()
dc.ConnectionString = GDataClass.CConinfo
dc.Open()
sql = "SELECT * FROM Ldraw Where Posted=0 order by pgrp,val(pcode)"
Dim da As New OleDbDataAdapter(sql, dc)
da.Fill(ds, "Ldraw")
myReport.setdataSource(ds)
CrvLuckyDrawResults.ReportSource = myReport
Catch ex As OleDbException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
--------------------------------------- |