rcsy001 发表于 2016-9-1 10:11:29

ARV10.2按示例创建报表总是有问题

本帖最后由 Lenka.Guo 于 2016-9-1 11:14 编辑

按示例步骤完成http://blog.gcpowertools.com.cn/post/2015/07/31/HTML5MVC5.aspx

运行总是出现问题,请看一下原因。
看看能不能完善一下,解决此问题。(估计是webconfig 或 引用dll的问题)


Lenka.Guo 发表于 2016-9-1 11:13:31

代码中几处有误,需要修改:

1. 修改 Web.config 文件 将ActiveReports 10 节点中的内容改为:
<ActiveReports10>
    <WebService reportsFolder="~/" assemblyFolder="~/" />
</ActiveReports10>

2. 修改RouteConfig.cs 文件:

routes.IgnoreRoute("<font color="#ff0000">ARreport/</font>ActiveReports.ReportService.asmx/{*pathInfo}");defaults: new { controller = "Index", action = "Index", id = UrlParameter.Optional }

3. 修改Index.cshtml 文件

report: {
                  id: "ARreport/RdlReport1.rdlx"
                },
                reportService: {
                  url: 'ARreport/ActiveReports.ReportService.asmx'
                },





程序:(下载之后,使用Vs 菜单 工具——转换为ActiveReports 10 转换为当前版本)

http://pan.baidu.com/s/1i46EZYl


rcsy001 发表于 2016-9-1 10:35:35

补充一下,开发环境:
vs2012+mvc4+AR10.2

rcsy001 发表于 2016-9-1 14:46:34

测试过后,问题原因为,路由问题:

解决办法:
routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
改为
routes.IgnoreRoute("ARreport/ActiveReports.ReportService.asmx/{*pathInfo}");

其他的没影响 。
谢谢答复。

rcsy001 发表于 2016-9-1 14:46:37

测试过后,问题原因为,路由问题:

解决办法:
routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
改为
routes.IgnoreRoute("ARreport/ActiveReports.ReportService.asmx/{*pathInfo}");

其他的没影响 。
谢谢答复。

Lenka.Guo 发表于 2016-9-1 15:24:14

rcsy001 发表于 2016-9-1 14:46
测试过后,问题原因为,路由问题:

解决办法:


不谢~

rcsy001 发表于 2016-9-1 16:09:37

可以结了

Lenka.Guo 发表于 2016-9-1 16:19:06

rcsy001 发表于 2016-9-1 16:09
可以结了

好的
页: [1]
查看完整版本: ARV10.2按示例创建报表总是有问题