在我的mvc应用程序中,我使用stimvcmobile作为设计报告,当我使用下面的代码运行我的应用程序时,我收到了一些错误:
<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()结束帮助和以上错误删除,但报告设计器不工作,为什么?请帮助?我的守则:
@Html.Stimulsoft().StiMvcMobileDesigner(new StiMvcMobileDesignerOptions()
{
ActionGetReportTemplate = "GetReportTemplate",
ActionGetReportSnapshot = "GetReportSnapshot"
}.ToString())浏览器控制台中的错误是:Uncaught SyntaxError: Unexpected token .
发布于 2015-11-23 05:38:39
添加组件的名称作为第一个参数。
... StiMvcMobileDesigner("StiMvcMobileViewer1", new StiMvcMobileDesignerOptions()https://stackoverflow.com/questions/33749409
复制相似问题