保险建议书

【保险建议书】该报表通过子报表嵌套来实现多页报表。

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>ActiveReportsJS sample</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet" /> <link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.8.94/css/materialdesignicons.min.css" /> <script src="/activereportsjs/demos/arjs/dist/ar-js-core.js"></script> <script src="/activereportsjs/demos/arjs/dist/ar-js-viewer.js"></script> <script src="/activereportsjs/demos/arjs/dist/ar-js-designer.js"></script> <script src="/activereportsjs/demos/arjs/dist/ar-js-pdf.js"></script> <script src="/activereportsjs/demos/arjs/dist/ar-js-html.js"></script> <script src="/activereportsjs/demos/arjs/dist/ar-js-xlsx.js"></script> <script src="/activereportsjs/demos/arjs-localization/dist/ar-js-locales.js"></script> <script src="/activereportsjs/demos/arjs-localization/dist/designer/zh-locale.js"></script> <script src="$DEMOROOT$/lib/purejs/license.js"></script> <link rel="stylesheet" type="text/css" href="/activereportsjs/demos/arjs/styles/ar-js-ui.css" /> <link rel="stylesheet" type="text/css" href="/activereportsjs/demos/arjs/styles/ar-js-viewer.css" /> <link rel="stylesheet" type="text/css" href="/activereportsjs/demos/arjs/styles/ar-js-designer.css" /> <style> #root { height: 100vh; } #viewer-host, #designer-host { height: 100%; } #designer-host { display: none; } </style> </head> <body onload="load()" style="margin: 0"> <div id="root"> <div id="viewer-host"></div> <div id="designer-host"></div> </div> <script> var currentReport = undefined; var viewerHost = document.getElementById("viewer-host"); var designerHost = document.getElementById("designer-host"); function load() { var viewer = new ActiveReports.Viewer("#viewer-host", { language: "zh", }); var designer = new GC.ActiveReports.ReportDesigner.Designer( "#designer-host", { language: "zh" } ); designer.setActionHandlers({ onRender(report) { currentReport = report.definition; viewer.open(currentReport); viewerHost.style.display = "block"; designerHost.style.display = "none"; // return Promise.resolve(); }, }); var designButton = { key: "$openDesigner", text: "编辑报表", iconCssClass: "mdi mdi-pencil", enabled: true, action: function (item) { designer.setReport({ definition: currentReport, displayName: "保险建议书", }); viewerHost.style.display = "none"; designerHost.style.display = "block"; }, }; viewer.toolbar.addItem(designButton); viewer.toolbar.updateLayout({ default: [ "$openDesigner", "$split", "$navigation", "$split", "$refresh", "$split", "$history", "$split", "$zoom", "$fullscreen", "$split", "$print", "$split", "$singlepagemode", "$continuousmode", "$galleymode", ], }); fetch("MainReport1.rdlx-json") .then(function (data) { return data.json(); }) .then(function (report) { currentReport = report; viewer.open(report); }); } </script> </body> </html>
{"Name":"Report","Type":"report","Width":"20cm","CustomProperties":[{"Name":"DisplayType","Value":"Page"},{"Name":"SizeType","Value":"Default"}],"Page":{"BottomMargin":"0.5cm","LeftMargin":"0.5cm","PageHeight":"27.9cm","PageWidth":"21.6cm","PageOrientation":"Portrait","RightMargin":"0.5cm","TopMargin":"0.5cm","ColumnSpacing":"0in","Columns":1},"Layers":[{"Type":"layer","Name":"default"}],"Body":{"Type":"section","Height":"77.811cm","Name":"Body","ReportItems":[{"Type":"subreport","Top":"26.993cm","Left":"0cm","Width":"20cm","Height":"10cm","ReportName":"AIA-Family-First-ProtectionSub1backup0407.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表1"},{"ZIndex":1,"Type":"subreport","Top":"0cm","Left":"0cm","Width":"20cm","Height":"2.5cm","ReportName":"AIA-Family-First-Protection.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表2"},{"ZIndex":2,"Type":"subreport","Top":"54.211cm","Left":"0cm","Width":"20cm","Height":"3.497cm","ReportName":"AIA-Family-First-ProtectionSub2.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表3"},{"ZIndex":3,"Type":"subreport","Top":"58.33cm","Left":"0cm","Width":"20cm","Height":"2.5cm","ReportName":"sub004.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表4"},{"ZIndex":4,"Type":"subreport","Top":"62.317cm","Left":"0cm","Width":"20cm","Height":"2.5cm","ReportName":"sub00401.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表5"},{"ZIndex":5,"Type":"subreport","Top":"66.009cm","Left":"0cm","Width":"20cm","Height":"2.5cm","ReportName":"sub5.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表6"},{"ZIndex":7,"Type":"subreport","Top":"69.511cm","Left":"0cm","Width":"20cm","Height":"8.3cm","ReportName":"sub6.rdlx-json","Style":{"Border":{"Color":"DimGray"},"FontFamily":"微软雅黑"},"Name":"子报表8"}]},"ConsumeContainerWhitespace":true}