The viewer can be built entirely in client JavaScript, with PHP acting only as the StiHandler request handler.

Process requests in PHP.
$handler = new StiHandler();
$handler->process();
Build the viewer in JavaScript. Include stimulsoft.dashboards.js alongside the report scripts:
let viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.onBeginProcessData = (args, callback) => Stimulsoft.handler.process(args, callback);

let report = new Stimulsoft.Report.StiReport();
report.loadFile("../reports/Christmas.mrt");
viewer.report = report;

viewer.renderHtml("viewerContent");

How it works. The dashboard renders in the browser; PHP is contacted only when the viewer needs data, keeping the server role minimal.

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