뷰어 컴포넌트 통합

이 샘플은 ActiveReportsJS Viewer 컴포넌트를 Angular, React, Vue 및 순수 JavaScript 응용 프로그램으로 통합하는 방법을 보여 줍니다. 자세한 내용은 통합 페이지를 방문하십시오. 코드를 보려면 아래로 스크롤하십시오.

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>ActiveReportsJS Report Viewer Integration Sample</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script src="$DEMOROOT$/arjs/dist/ar-js-core.js"></script> <script src="$DEMOROOT$/arjs/dist/ar-js-viewer.js"></script> <script src="$DEMOROOT$/arjs/dist/ar-js-pdf.js"></script> <script src="$DEMOROOT$/arjs/dist/ar-js-tabular-data.js"></script> <script src="$DEMOROOT$/arjs/dist/ar-js-html.js"></script> <script src="$DEMOROOT$/lib/purejs/license.js"></script> <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" type="text/css" href="$DEMOROOT$/arjs/styles/ar-js-ui.css" /> <link rel="stylesheet" type="text/css" href="$DEMOROOT$/arjs/styles/ar-js-viewer.css" /> <style> #viewer-host { margin: 0 auto; width: 100%; height: 600px; } </style> </head> <body> <div id="viewer-host"></div> <script> MESCIUS.ActiveReportsJS.Core.FontStore.registerFonts( "$DEMOROOT$/resource/fontsConfig.json" ); const viewer = new MESCIUS.ActiveReportsJS.ReportViewer.Viewer( "#viewer-host" ); viewer.theme="ActiveReports"; viewer.open("$DEMOROOT$/resource/reports/Frontstore.rdlx-json"); </script> </body> </html>