Problem: Cannot load Report in Viewer
Posted: Wed Apr 09, 2014 9:54 am
Hello
I hope you can help me. I'm trying out Stimulsoft because we want to replace Crystal Reports with a new engine.
I made a report with the designer and I'm trying to add it to a ASP.NET-Page. I added a StiWebReport to the page and connected my report with it. Also I added a StiWebViewer, where I connect the viewer with the report:
StiReport report = StiWebReport1.GetReport();
report.Load(Server.MapPath("~/Reports/Testreport.mrt"));
StiWebViewer1.Report = report;
Until now everything works. But when I open the page, give in the values of the report parameters and click on "Submit" the page starts to load and doesn't stop with it. The report keeps empty. In the report I added a datasource and it works properly. What do I have to do that my report works?
P.S: This also didn't work:
DataSet ds = new DataSet("AName");
ds.ReadXml(Server.MapPath("~/App_Data/DataSet.xsd"));
report.RegData(ds);
StiWebViewer1.Report = report;
I hope you can help me. I'm trying out Stimulsoft because we want to replace Crystal Reports with a new engine.
I made a report with the designer and I'm trying to add it to a ASP.NET-Page. I added a StiWebReport to the page and connected my report with it. Also I added a StiWebViewer, where I connect the viewer with the report:
StiReport report = StiWebReport1.GetReport();
report.Load(Server.MapPath("~/Reports/Testreport.mrt"));
StiWebViewer1.Report = report;
Until now everything works. But when I open the page, give in the values of the report parameters and click on "Submit" the page starts to load and doesn't stop with it. The report keeps empty. In the report I added a datasource and it works properly. What do I have to do that my report works?
P.S: This also didn't work:
DataSet ds = new DataSet("AName");
ds.ReadXml(Server.MapPath("~/App_Data/DataSet.xsd"));
report.RegData(ds);
StiWebViewer1.Report = report;