Page 1 of 1

Databinding With dataset error on field

Posted: Tue Feb 28, 2012 9:00 am
by Guido
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()






Databinding With dataset error on field

Posted: Wed Feb 29, 2012 1:47 am
by HighAley
Hello.
Guido wrote: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()
Please, send us your report template with sample data to reproduce your issue to support@stimulsoft.com

Thank you.

Databinding With dataset error on field

Posted: Wed Feb 29, 2012 8:08 am
by Guido
Got it working.

Had to make the relations after adding my datatset to make it work

thx for reply

Databinding With dataset error on field

Posted: Wed Feb 29, 2012 8:18 am
by Alex K.
Hello,

Ok.
Let us know if you need any additional help.

Thank you.