A dashboard can be sent to print straight from PHP — loading it and calling print() opens the browser print dialog.

Load and print the dashboard.
$report = new StiReport();
$report->javascript->relativePath = '../';
$report->process();

$report->loadFile('../reports/Christmas.mrt');
$report->print();

$report->printHtml();

How it works. The print call is generated as client code, so the dashboard is rendered and sent to the browser's print flow without a viewer.

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.