Error Can't find object MySqlDataConnection

Paulo FreirePaulo Freire S??o Paulo - Brasil
edited 5:44AM in FastReport .NET
FastReportError01.jpg

My English is bad

In Designer's ok, when I view the error occurs.

thank you

Comments

  • edited 5:44AM
    Hello,

    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));
  • Paulo FreirePaulo Freire S??o Paulo - Brasil
    edited 5:44AM
    AlexTZ wrote: »
    Hello,

    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
  • edited January 28

    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>

Leave a Comment