Set up the report viewer in JavaScript, load a template, and connect the component to the application.

Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
var viewer = new Stimulsoft.Viewer.StiViewer();

var report = new Stimulsoft.Report.StiReport();
report.loadFile("../reports/SimpleList.mrt");

viewer.report = report;
Creating the viewer with default options and assigning a report shows it right away — suitable for pages whose main content is a report, where the preview should appear without any user action.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.