本帖最后由 Lenka.Guo 于 2016-3-24 16:33 编辑
刚开始用Html5的activereports
运行不起来。
报
另外有没有相关的JS文档。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../themes/bootstrap/easyui.css" rel="stylesheet" type="text/css" title="skin" />
<link href="../Common/Tools/ActiveReportsJS/GrapeCity.ActiveReports.Viewer.Html.css" rel="stylesheet" type="text/css" />
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js" type="text/javascript"></script>
<!--<script src="../js/jquery.easyui.min.js" type="text/javascript"></script>-->
<script src="../Common/Tools/ActiveReportsJS/GrapeCity.ActiveReports.Viewer.Html.js" type="text/javascript"></script>
</head>
<body>
<div id="viewer" style="width: 600px; height: 480px;"></div>
</body>
</html>
<script>
$(function () {
var viewer = GrapeCity.ActiveReports.Viewer(
{
element: '#viewer',
report: {
id: "test.rdlx"
//,
//参数
//parameters: [
// {
// name: 'CustomerID',
// value: 'ALFKI'
// }
//]
},
selectedReportIndex: 0,
//reportService: {
// url: '/ActiveReports.ReportService.asmx'
//},
uitype: 'desktop',
documentLoaded: function reportLoaded() {
console.log(viewer.pageCount);
},
reportLoaded: function (reportInfo) {
console.log(reportInfo.parameters);
},
error: function (error) {
console.log("error");
}
});
});
</script>
|