首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >StimulSoft v2015.2 (StiMvcMobile)出错

StimulSoft v2015.2 (StiMvcMobile)出错
EN

Stack Overflow用户
提问于 2015-11-17 04:52:14
回答 1查看 374关注 0票数 0

在我的mvc应用程序中,我使用stimvcmobile作为设计报告,当我使用下面的代码运行我的应用程序时,我收到了一些错误:

代码语言:javascript
复制
 <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>

错误:'Stimulsoft.Report.MvcMobile.StiMvcHelper.StiMvcMobileDesigner(string)‘的最佳重载方法匹配CS1502有一些无效的参数

我的Resharper建议添加.ToString()结束帮助和以上错误删除,但报告设计器不工作,为什么?请帮助?我的守则:

代码语言:javascript
复制
 @Html.Stimulsoft().StiMvcMobileDesigner(new StiMvcMobileDesignerOptions()
        {
            ActionGetReportTemplate = "GetReportTemplate",
            ActionGetReportSnapshot = "GetReportSnapshot"

        }.ToString())

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-11-23 05:38:39

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

代码语言:javascript
复制
... StiMvcMobileDesigner("StiMvcMobileViewer1", new StiMvcMobileDesignerOptions()
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33749409

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档