您好,您的意思是,您点击了一个查询然后报表进行了加载。现在想进行另外一个操作,让报表重新加载,还是怎么的
如果是这样的需求,您可以尝试着写多个按钮的触发,然后点击不同的按钮触发不同的事件。可以实现不同加载的不同- <body>
- <button type="button" onclick="dy()">打印</button>
- <button type="button" onclick="dm()">刷新</button>
- <div id="viewer" style="width:1000px ;height:800px;"></div>
- <script src="Scripts\bootstrap-3.0.0.js"></script>
- <script src="Scripts\knockout-2.3.0.js"></script>
- <script src="Scripts\jquery-1.10.2.js"></script>
- <script src="Scripts\GrapeCity.ActiveReports.Viewer.Html.js"></script>
- <script type="text/javascript">
- function dy() {
- var viewer = GrapeCity.ActiveReports.Viewer({
- element: '#viewer',
- reportService: {
- url: '/ActiveReports.ReportService.asmx'
- },
- uiType: 'Custom',
- report: {
- id: "货物跟踪报表.rdlx"
- },
- //documentLoaded: function reportLoaded() {
- // viewer.print();
- //},
- });
-
- }
- function dm() {
- var viewer = GrapeCity.ActiveReports.Viewer({
- element: '#viewer',
- reportService: {
- url: '/ActiveReports.ReportService.asmx'
- },
- uiType: 'Desktop',
- report: {
- //id: "货物跟踪报表.rdlx"
- },
- //documentLoaded: function reportLoaded() {
- // viewer.print();
- //},
- });
- }
-
- </script>
- </body>
- </html>
复制代码
|