FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

FirebaseSqlClient convert to FastReport.Base

Open off1n3 opened this issue 4 years ago • 1 comments

Im trying to fill my report made on fastreport designer, I can fill my report in the designer using the connection string and all good! But when Im trying to load my report I receive a error in some case Can't find object FirebirdDataConnection or when im trying to put :

RegisteredObjects.AddConnection(typeof(FirebirdDataConnection));
Report report = new Report();
var path = Path.Combine(_hostingEnvironment.ContentRootPath, "Templates", "Reports", "ReportTransfe.frx");
report.Load(path); [Here just throw a error about  Can't find object FirebirdDataConnection ]
report.Dictionary.Connections[0].ConnectionString = @"initial catalog=[mypath];userid=SYSDBA;password=key";
report.Report.Dictionary.Connections.Add(fbConn); 
return report;

Too I tried

RegisteredObjects.AddConnection(typeof(FirebirdDataConnection));
Report report = new Report();
FbConnection fbConn = new FbConnection();
fbConn.ConnectionString = Configuration.GetConnectionString("Database");
report.Report.Dicitonary.Connections.Add(fbConn); [Here I got a error about convertion from FirebirdDataConnection to FastReport.Base ]
return report;

How I can set correctly my settings for make my report?

Im using .Net core 3.1 and Firebird 3

off1n3 avatar Oct 20 '21 02:10 off1n3

Hello!

Tell me more about the configuration of your project

Best regards Marat

MaratAlaev avatar Jul 06 '22 14:07 MaratAlaev