I'm trying FastReport.Mono on Linux (CentOS 7) to see if I can make an app to generate reports. Example Mono app seems to work fine with PDF and JPG export from custom dataset.
Now I need to query data from MS SQL database. I have a sample report that works well under Windows, but fails on Linux:
private static void ReportExportJPG()
Report report = new Report();
report.Prepare(); // <<<--- Error here
Cant find object MsSqlDataConnection
I was able to resolve this by adding the following to my project source:
using FastReport.Data; using FastReport.Utils; ... RegisteredObjects.AddConnection(typeof(MsSqlDataConnection));