FastReport.Core / sqlConnection

Hey,

using the trial version I tried the following code:
            
var sqlConnection = new MsSqlDataConnection();
sqlConnection.ConnectionString = _connectionString;
           sqlConnection.CreateAllTables();
            report.Report.Dictionary.Connections.Add(sqlConnection);
            report.Report.Load(reportFile);

This example throws the following exception on Load(reportfile): FastReport.Utils.ClassException: 'Can't find object MsSqlDataConnection'

Using a Report without Database connection works as expectd.

Any Idea on how to use a database connection on .core?

Thanks
Matthias

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.