With the Node.js engine, a dashboard can be rendered and exported entirely on the server — no browser involved. The result comes back as byte data.

Export via the Node.js engine.
$report = new StiReport();
$report->engine = StiEngineType::ServerNodeJS;
$report->process();

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

$result = $report->exportDocument(StiExportFormat::Html);
// $report->exportDocument(StiExportFormat::Pdf, null, false, 'reports/Christmas.pdf');

$message = $result !== false ? 'Done.' : $report->nodejs->error;

How it works. Node.js runs the engine server-side, so the export completes without a client, ideal for scheduled or headless generation.

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.