A dashboard can be exported from PHP code to PDF, Excel or HTML — the export runs on the client engine, triggered from a button.

Emit an export call per format.
$report = new StiReport();
$report->loadFile('../reports/Christmas.mrt');
$report->process();

// Inside a JS function, emit the export code:
// function exportToPdf() {
$report->exportDocument(StiExportFormat::Pdf);   // Excel, Html
echo $report->getHtml(StiHtmlMode::Scripts);
// }

How it works. The export is produced by the client-side engine, so each button emits the JS for its format and the browser generates the file.

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.