public virtual ActionResult GetReportSnapshot()
{
var data = (ComparativeBalanceReportDS) TempData["ComparativeSession"];
StiReport report = new StiReport();
report.Load(Server.MapPath("~/Content/StimulReports/SampleReport.mrt"));
report.Compile();
report["fromDocumentNumber"] = "1";
report["toDocumentNumber"] = "85";
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
I have stored procedure and execute in designer but I do not send parameters to it and when run App, I get the following error:
Error:SqlCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size.
What do I do?