Ladies and Gentlemen
Yout help please.
I've tried a search on this topic but to no avail
, so I though I'd post it.
I'm new to Crystal Reports. I'm using VB 2005 and Crystal Reports XI.
I've been given the task to create a Winform to allow the user to create Ad Hoc reports from our table(s) in our Oracle DB. As I found out today, I need to utilize Runtime customization. I have a copy of Brian's book (CR & .NET programming) which I purchased over the weekend.
I'm working on ch 15, 16... at the moment and I'm stuck! I have used some code snippets from the book and I get this error:
The report has no tables. I know the data is there because I can see it inth VB debugger but it will not work! My code:
Dim
da As OracleClient.OracleDataAdapter
Dim ds As New DataSet
Dim sql As String = "SELECT * FROM EUSER"
Dim tName As String = "EUSER"
Using cnn As OracleClient.OracleConnection = New OracleClient.OracleConnection(AdHocReportConnection)
cnn.Open()
da = New OracleClient.OracleDataAdapter(Sql, cnn)
da.Fill(ds) ', tName)
End Using
CreateXmlFile("USERTest", ds)
Dim myReport As New CrystalReport1
myReport.SetDataSource(ds) 'Error here...
CrystalReportViewer1.ReportSource = myReport
The code works fine up until the red line. What am I doing wrong???
Any help would be fantastic!
Thanks
Edited by elfstoneUK - 09 Apr 2008 at 6:54am