小编roo*_*beh的帖子

如何向Stimulsoft发送参数?

    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方法要求所有可变长度参数都具有显式设置的非零大小.

我该怎么办?

c# asp.net-mvc stimulsoft

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

asp.net-mvc ×1

c# ×1

stimulsoft ×1