I created a report with Stimulsoft and use it in my web app
i crated a dataset in report and want to show selected data in report but it dosen't show any thing in StiWebViewer and it's show a blank page!
my code is this:
Code: Select all
var select = db.ViewComplaint.FirstOrDefault(n => n.idComplaint == 5);
StiReport report = new StiReport();
report.RegData("select", select);
string serverlocation = HttpContext.Current.Server.MapPath(string.Empty);
report.Load(serverlocation + "\\Report.mrt");
report.RegData("select", select);
report.Render();
StiWebViewer1.Report = report;
plz help me as fast as is possible!
Thanks!