你好,这个问题看起来有点诡异,我这边现在试了都是这正常的,这是我页面的写法- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="theme-color" content="#000000">
- <title>JS Viewer</title>
- <link href="jsViewer.min.css" rel="stylesheet">
- <link href="index.css" rel="stylesheet">
- </head>
- <body onload="loadViewer()">
- <div style="width: 100%; overflow-x: hidden">
- <div style="float:right;width:100%" id="viewerContainer">
- </div>
- </div>
- <script type="text/javascript" src="jsViewer.min.js"></script>
- <script type="text/javascript">
- let viewer;
- function loadViewer() {
- //viewer = GrapeCity.ActiveReports.JSViewer.create({
- // element: '#viewerContainer'
- //});
- //viewer.openReport("RdlReport1.rdlx");
- GrapeCity.ActiveReports.JSViewer.print({ reportID: '无预览打印.rdlx', reportParameters: [{ name: 'P1', values: ['1024'] }, { name: 'P2', values: ['1010'] }] });
- }
- </script>
- </body>
- </html>
复制代码
|