您好,我在加服务时默认就引用了dll,
但是依然还有这个问题,我猜测可能是不是HTML5里面引用的脚本不够还是顺序有问题呀,我贴一下如下:
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
<link href="~/Content/Report/css/bootstrap.css" rel="stylesheet" />
@*<link href="~/Content/Report/css/bootstrap-datetimepicker.css" rel="stylesheet" />
<link href="~/Content/Report/css/theme-cosmo.css" rel="stylesheet" />
<link href="~/Content/Report/css/site.css" rel="stylesheet" />*@
<link href="~/Content/Report/css/GrapeCity.ActiveReports.Viewer.Html.css" rel="stylesheet" />
</head>
<body>
<div>
<div id="viewer" style="height:460px;width:100%;"></div>
</div>
<script src="~/Content/Report/js/jquery-1.10.2.js"></script>
<script src="~/Content/Report/js/bootstrap-3.0.0.js"></script>
<script src="~/Content/Report/js/knockout-2.3.0.js"></script>
<script src="~/Content/Report/js/GrapeCity.ActiveReports.Viewer.Html.js"></script>
<script src="~/Content/js/hh.base/HH.Magic.Common.js"></script>
<script>
$(function () {
var opNo = GetUrlParam("opNo");
var viewer = GrapeCity.ActiveReports.Viewer({
element: '#viewer',
report: {
id: 'Report/InStock/InStockReport.rdlx',//'CustomDataSource.rdlx',
parameters: [
{
name: 'opNo',
value: opNo
}, {
name: 'reportName',
value:'入库单报表'
}
]
},
reportService: {
url: '/Report/InStock/InStockActiveService.asmx'
},
uiType: 'desktop',
localeUri: '/Content/Report/js/i18n/Localeuri.txt',
documentLoaded: function reportLoader() {
//viewer.print();
},
reportLoaded: function (reportInfo) {
console.log(reportInfo.parameters);
}
});
$(window).bind('beforeunload', function () {
viewer.destroy();
});
})
</script>
<script src="~/Content/Report/js/modernizr-2.8.3.js"></script>
<script src="~/Content/Report/js/jquery.livequery-1.3.6.js"></script>
<script src="~/Content/Report/js/bootstrap-datetimepicker-2.3.11.js"></script>
<script src="~/Content/Report/js/locales/bootstrap-datetimepicker.ja.js"></script>
<script src="~/Content/Report/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</body>
</html>
|