Databinding With dataset error on field

Stimulsoft Reports.NET discussion
Post Reply
Guido
Posts: 2
Joined: Tue Feb 28, 2012 8:32 am
Location: Netherlands

Databinding With dataset error on field

Post 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()





HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Databinding With dataset error on field

Post 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.
Guido
Posts: 2
Joined: Tue Feb 28, 2012 8:32 am
Location: Netherlands

Databinding With dataset error on field

Post by Guido »

Got it working.

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

thx for reply
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Databinding With dataset error on field

Post by Alex K. »

Hello,

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

Thank you.
Post Reply