本帖最后由 KearneyKang 于 2022-4-7 10:02 编辑
- <script type="text/javascript">
- let viewer;
- function loadViewer() {
- viewer = GrapeCity.ActiveReports.JSViewer.create({
- element: '#viewerContainer',
- reportService: {
- url: 'api/reporting',
- onRequest: function (init) {
- init.headers.Authorization = 'token';
- }
- }
- });
- viewer.openReport("JsonUrl.rdlx");
- }
- </script>
复制代码
|