Can't find onject FirebirdDataConnection

edited November 2009 in FastReport .NET
Hello,
I am using Fast Report in a Win application. FastReport.Firebird.dll registered successfully and I designed a report
which connect firebird database. On my computer report previewed but on any user computer
bellow error occurred despite copying fastreport dll files in project folder.

Can't load the report xxx.frx
Can't find object FirebirdDataConnection

Thanks in advance.

Comments

  • edited 9:47PM
    Hello,

    You have to register the connector using the code:

    - add the "FastReport.Firebird.dll" reference to your project;
    - execute the following code once at the application start:
    FastReport.Utils.RegisteredObjects.AddConnection(typeof(FirebirdDataConnection));
  • edited July 2017
    Hello!!!

    I'm with the trial version of FastReport .NET
    Using the Firebird database.
    Visual Web Developer Express 2008

    In the FastReport Designer I can build the report with the data source, but in ASPX it does not. The error "Can not find onject FirebirdDataConnection" appears.

    What are the steps to implement:
    FastReport.Utils.RegisteredObjects.AddConnection(typeof(FirebirdDataConnection));
  • edited July 2017
    Hello,

    I got it that way:

    using FastReport.Data;
    or
    FastReport.Utils.RegisteredObjects.AddConnection(typeof(FastReport.Data.FirebirdDataConnection));


  • Exemplo um mais completo:

    FastReport.Utils.RegisteredObjects.AddConnection(typeof(FastReport.Data.FirebirdDataConnection));

    FirebirdDataConnection conexaoFirebird = new FirebirdDataConnection();

    conexaoFirebird.ConnectionString = "Data Source=localhost;Port=3050;User=SYSDBA;Password=masterkey;Dialect=3;Database=c:\Arquivos\meubanco.fdb";

    webreport1.Report.Load(Server.MapPath("") + "\\Relatorios\\MeuRelatorio.frx");

    webreport1.Report.Dictionary.Connections[0].ConnectionString = conexaoFirebird.ConnectionString;

    webreport1.Prepare();

Leave a Comment