The Reports.PHP viewer is created on the server with the PHP SDK, which outputs the JavaScript viewer into the page.

Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
$viewer = new StiViewer();
$viewer->javascript->relativePath = '../';
$viewer->process();

$report = new StiReport();
$report->loadFile('../reports/SimpleList.mrt');
$viewer->report = $report;

$viewer->printHtml();


process() handles the AJAX requests the viewer makes, loadFile loads a template, and printHtml() outputs the complete viewer HTML. The report is rendered in the browser by the bundled JavaScript engine.

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