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.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.