Customizing the Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.The viewer toolbar and export options can be trimmed to expose only the features you want. This example hides the Open button and the PDF export.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-reports-js-vuejs/viewer';
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Reports/SimpleList.mrt");
var viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
viewerOptions.toolbar.showOpenButton = false;
viewerOptions.exports.showExportToPdf = false;
</script>
<template>
<Viewer :report="report" :options="viewerOptions" />
</template>The toolbar and exports option groups switch individual buttons and export formats on and off, from a full-featured viewer to a minimal one.