Databinding With dataset error on field
Posted: Tue Feb 28, 2012 9:00 am
I am evaluating stimulsoft report to use as reporttool in our application
To Show a report with data i'm using a dataset
However as the report renders i get an error message:
'mypath'\AppData\Local\Temp\kbaqjqji.0.cs(39,56) : error CS0117: 'string' does not contain a definition for 'ALGEMEEN_CONDITIE'
Where 'ALGEMEEN_CONDITIE' is the first field of the first table in stimulsoft datasourses in my report.
the dataset contains both the table and the field
How can i fill my report with a dataset without getting this error
Hereafter my code:
Dim myreport As New Stimulsoft.Report.StiReport
myreport.Load(Reportname)
Dim ds As DataSet
ds = FillDS(connstring, myreport.Dictionary.Databases, myreport.Dictionary.DataSources, dt)
myreport.DataSources.Clear()
myreport.Dictionary.Databases.Clear()
myreport.RegData(ds)
myreport.Dictionary.Synchronize()
myreport.Render()
myreport.Show()
To Show a report with data i'm using a dataset
However as the report renders i get an error message:
'mypath'\AppData\Local\Temp\kbaqjqji.0.cs(39,56) : error CS0117: 'string' does not contain a definition for 'ALGEMEEN_CONDITIE'
Where 'ALGEMEEN_CONDITIE' is the first field of the first table in stimulsoft datasourses in my report.
the dataset contains both the table and the field
How can i fill my report with a dataset without getting this error
Hereafter my code:
Dim myreport As New Stimulsoft.Report.StiReport
myreport.Load(Reportname)
Dim ds As DataSet
ds = FillDS(connstring, myreport.Dictionary.Databases, myreport.Dictionary.DataSources, dt)
myreport.DataSources.Clear()
myreport.Dictionary.Databases.Clear()
myreport.RegData(ds)
myreport.Dictionary.Synchronize()
myreport.Render()
myreport.Show()