Type "StiSqlDatabase" is not defined error...

Stimulsoft Reports.NET discussion
Post Reply
This_Reporter
Posts: 3
Joined: Thu Aug 16, 2012 12:36 pm

Type "StiSqlDatabase" is not defined error...

Post by This_Reporter »

Hello,

I'm trying to connect to a new database and pull the information from that database into the report dictionary. I have the following code written but get two "type not defined" errors.

Code: Select all

Me.Dictionary.Clear()
Me.Dictionary.Databases.Add(new StiSqlDatabase("Part Labels", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Q:\Engineering\Microvellum\%Report Processing\Part Labels.mdb;"))
Dim DataSource1 As StiOleDbSource = New StiOleDbSource("Part Labels", "DS1", "DS1", "SELECT * FROM MATERIALS", True, False)
Me.Dictionary.DataSources.Add(DataSource1)
For Each col As DataColumn In dataSOURCE1.Columns
 	DataSource1.Columns.Add(col.ColumnName, col.DataType)
 Next
Errors:

Type 'StiSqlDatabase' is not defined
Type 'StiOleDbSource' is not defined

Any insight? Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Type "StiSqlDatabase" is not defined error...

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
Post Reply