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.

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