Server-side rendering can be followed by a server-side export. This example renders a report with the Node.js engine and exports it to text.

Exporting the document. Load and render the report, configure the requested export format, and deliver the generated bytes as a file, stream, or web response.
$report = new StiReport();
$report->engine = StiEngineType::ServerNodeJS;
$report->process();
$report->loadFile('reports/SimpleList.mrt');

$report->render();
$result = $report->exportDocument(StiExportFormat::Text);
if ($result !== false) echo "<pre>$result</pre>";


With the Node.js engine, exportDocument returns the exported data on the server, so you can generate PDFs, spreadsheets or text files in a background job without any client.

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.