Problem in assigning the datasource of ComponentOne report for .net

klaire.cor

New member
Joined
Jan 3, 2005
Messages
1
Programming Experience
3-5
Good Day to All!

How to make the dataset (ex. mydatatemp.xsd) as the datasource of the ComponentOne Report?

Dim datatemp as New mydatatemp()
Dim ds As DataSource = datatemp

With c1report1
.Load(myReportDefinitionFile, "SampleReport")
.DataSource.RecordSource = ds
.Render()
EndWith

The 'datatemp' gets an error "Value of type 'AttendanceSystem.mydatatemp' cannot be converted to C1.Win.C1Report.DataSource'".
Why is that? Or is there another way to define mydatatemp.xsd as the datasource of my report?


thanks in advance
klaire.cor
 
Last edited:
Back
Top