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);
}
Run Code Online (Sandbox Code Playgroud)
我有存储过程并在设计器中执行但我没有向它发送参数,当运行App时,我收到以下错误:
错误:SqlCommand.Prepare方法要求所有可变长度参数都具有显式设置的非零大小.
我该怎么办?