How to register data from Dataview
Posted: Wed Feb 08, 2023 12:26 am
Due to performance issues with a report, I am attempting to first fetch the data from a SQL database and then register it with the report.
The report displays in the Webviewer, but with no data except for the page header title.
I am using Reports.Web version 2022.2.1
The report has a connection and datasource called "ReportData". What I can't figure out is how to associate my data with the datasource.
Is there some example code? I followed this page without any success: https://www.stimulsoft.com/en/samples/r ... -from-code
The report displays in the Webviewer, but with no data except for the page header title.
I am using Reports.Web version 2022.2.1
Code: Select all
DataView data = GetReportData();
var report = new StiReport();
report.Load("CustomerData.mrt");
report.Dictionary.Databases.Clear();
//report.Dictionary.DataSources.Clear();
report.RegData(data);
report.Dictionary.Synchronize();
webViewer.Report = report;
Is there some example code? I followed this page without any success: https://www.stimulsoft.com/en/samples/r ... -from-code