Reports.Net report no data in .Web WebViewer
Posted: Sat Feb 23, 2013 4:13 pm
I have a bunch of reports that were created using the Reports.Net designer.
I had switched out the Reports.Net web viewer in my web project with the latest Reports.Web web viewer. The reports are no longer fetching the data.
However, if I pull the reports in the Reports.Web designer, they work fine. It's only in the web viewer where they are not working.
I dynamically assign the database at the report's run-time. Could this be the reason?
Any ideas?
I had switched out the Reports.Net web viewer in my web project with the latest Reports.Web web viewer. The reports are no longer fetching the data.
However, if I pull the reports in the Reports.Web designer, they work fine. It's only in the web viewer where they are not working.
I dynamically assign the database at the report's run-time. Could this be the reason?
Code: Select all
StiReport report = new StiReport();
report.Load(reportFilename);
StiSqlDatabase db = (StiSqlDatabase)report.Dictionary.Databases[0];
db.ConnectionString = connString;
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(db);
webViewer.Report = report;