两个模板文件都是 内部设置的链接数据库字段(BIQS_QC.rdlx可以预览出来,DoBill_t.rdlx不行报上图错误)
看看 是不是哪里出问题
html代码
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title></title>
- <!--Add the references to these files to the target HTML page-->
- <link rel="stylesheet" >
- <link rel="stylesheet" type="text/css">
- <link rel="stylesheet" href="jsViewer.min.css" type="text/css">
- <link href="jsViewer.min.css" rel="stylesheet" />
- <script src="jsViewer.min.js"></script>
- </head>
- <body >
- <div Style="z-index: 102; left: 4px; position: absolute; height:100%; Width:100%" id="viewerContainer"></div>
- </body>
- </html>
- <script type="text/javascript">
- var viewer = GrapeCity.ActiveReports.JSViewer.create({
- element: '#viewerContainer',
- id:'test',
- reportID: 'DoBill_t.rdlx', // the id of the report to display
- availableExports: ['Xml', 'Pdf', 'Excel'],
- reportService: {},
- displayMode: 'Continuous',//连续模式
-
- });
- </script>
复制代码
|