HighTechTalks DotNet Forums  

Invalid Report Source Problem !

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Invalid Report Source Problem ! in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
IMRAN SAROIA
 
Posts: n/a

Default 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

---------------------------------------




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.