FastReport export error, preview not working

My report doesn't work properly. I believe some settings are wrong (maybe just one), but the report is not showing me data. I'm creating reports from a seperate application, which needs to export to PDF (for testing, I'm exporting to jpg). The report is showing the correct data when I preview it in the designer. The connection (MSSQL) is tested and works. The query is a Stored Procedure with 5 parameters, all created in the report. The fields are correctly set.


I hope anyone can see why it isn't working. The file is attached.


Comments

  • Hello!

    The connector plugin (FastReport.MsSql / MsSqlDataConnection) is not connected in the application, or the parameters/connection string have not been passed to `Prepare()` (`report.Dictionary.Connections[0].ConnectionString = ...;`).

    If data is passed from C# code, don’t forget to enable the data source after RegisterData(...): report.GetDataSource(“...”).Enabled = true;.

    Be sure to call report.Prepare(); before report.Export(export, path);

This discussion has been closed.