Page 1 of 1

Type "StiSqlDatabase" is not defined error...

Posted: Wed Sep 05, 2012 5:58 pm
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.

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

Posted: Thu Sep 06, 2012 5:58 am
by Alex K.
Hello,

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

Thank you.