You should register a connection in code, as described in the readme.txt file:
3) register the dll programmatically
- add the "FastReport.MySQL.dll" reference to your project;
- execute the following code once at the application start:
FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));
You should register a connection in code, as described in the readme.txt file:
3) register the dll programmatically
- add the "FastReport.MySQL.dll" reference to your project;
- execute the following code once at the application start:
FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));
Change <MySqlDataConnection>....</MySqlDataConnection> To <XmlDataConnection>....</XmlDataConnection> in the report <Dictionary>....</Dictionary> field.
Comments
You should register a connection in code, as described in the readme.txt file:
3) register the dll programmatically
- add the "FastReport.MySQL.dll" reference to your project;
- execute the following code once at the application start:
FastReport.Utils.RegisteredObjects.AddConnection(typeof(MySqlDataConnection));
Thank you AlexTZ
Change <MySqlDataConnection>....</MySqlDataConnection> To <XmlDataConnection>....</XmlDataConnection> in the report <Dictionary>....</Dictionary> field.
My report sample is :
<Dictionary>
<XmlDataConnection>
<TableDataSource Name="EMPLOYEES" DataType="System.Int32" Enabled="true">
<Column Name="ID" DataType="System.Decimal"/>
<Column Name="FIRST_NAME" DataType="System.String"/>
<Column Name="LAST_NAME" DataType="System.String"/>
<Column Name="EMAIL" DataType="System.String"/>
</TableDataSource>
</XmlDataConnection>
</Dictionary>