리포트 테마

리포트 테마를 사용하면 색상 팔레트, 글꼴, 이미지, 텍스트 값이 포함된 JSON 파일을 사용하여 보고서를 쉽게 사용자 정의할 수 있습니다. 이 예에서 사용자는 간단한 매개변수를 사용하여 특정 '밝은' 테마와 '어두운' 테마 간에 전환하여 보고서의 모양과 가독성을 향상시킬 수 있습니다.

<!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 rel="stylesheet" href="https://cdn.materialdesignicons.com/5.4.55/css/materialdesignicons.min.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.mescius.com/activereportsjs/5.latest/styles/ar-js-ui.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.mescius.com/activereportsjs/5.latest/styles/ar-js-viewer.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.mescius.com/activereportsjs/5.latest/styles/ar-js-designer.css" /> <link rel="stylesheet" type="text/css" href="/activereportsjs/demos/resource/common/report-sample-style.css" /> <script src="/activereportsjs/demos/resource/common/init-report-sample.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-core.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-viewer.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-designer.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-pdf.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-html.js"></script> <script src="https://cdn.mescius.com/activereportsjs/5.latest/dist/ar-js-tabular-data.js"></script> <script src="$DEMOROOT$/lib/purejs/license.js"></script> <script> function onLoad() { initReportSample( "viewer-host", "designer-host", "ThemedReport.rdlx-json", "Report Themes", function (viewer) { viewer.showParametersOnOpen = "always"; }, false, { ParameterPanelLocation: "top", } ); } </script> </head> <body onload="onLoad()"> <div id="root"> <div id="viewer-host"></div> <div id="designer-host"></div> </div> </body> </html>