StimulSoft v2015.2 (StiMvcMobile) 错误

Error with StimulSoft v2015.2 (StiMvcMobile)

我在我的 mvc 应用程序中使用 stimulsoft 2015 v.2 我使用 stimvcmob​​ile 进行设计报告 当我 运行 我的应用程序使用以下代码时,我收到一些错误:

 <head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    @Html.Stimulsoft().RenderMvcMobileDesignerScripts()
</head>
<body>
    <div>
        @Html.Stimulsoft().StiMvcMobileDesigner(new StiMvcMobileDesignerOptions()
        {
            ActionGetReportTemplate = "GetReportTemplate",
            ActionGetReportSnapshot = "GetReportSnapshot"

         })
    </div>
</body>

error: CS1502: The best overloaded method match for 'Stimulsoft.Report.MvcMobile.StiMvcHelper.StiMvcMobileDesigner(string)' has some invalid arguments

我的 Resharper 建议将 .ToString() 添加到 Helper 的末尾并删除上面的错误,但报告设计器不工作,为什么?请帮助?? 我的代码:

 @Html.Stimulsoft().StiMvcMobileDesigner(new StiMvcMobileDesignerOptions()
        {
            ActionGetReportTemplate = "GetReportTemplate",
            ActionGetReportSnapshot = "GetReportSnapshot"

        }.ToString())

浏览器控制台中的错误是:Uncaught SyntaxError: Unexpected token .

添加组件名称作为第一个参数。

... StiMvcMobileDesigner("StiMvcMobileViewer1", new StiMvcMobileDesignerOptions()