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.
In the screenshot below you can see the result of the sample code:

Exporting a Dashboard from Code

Hi. Need any help?