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.

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