Type "StiSqlDatabase" is not defined error...
Posted: Wed Sep 05, 2012 5:58 pm
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.
Errors:
Type 'StiSqlDatabase' is not defined
Type 'StiOleDbSource' is not defined
Any insight? Thanks.
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
Type 'StiSqlDatabase' is not defined
Type 'StiOleDbSource' is not defined
Any insight? Thanks.