Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
onEndExportReport event.$viewer->onEndExportReport = function (StiExportEventArgs $args) {
$reportName = $args->fileName . '.' . $args->fileExtension;
$reportPath = "../reports/$reportName";
file_put_contents($reportPath, base64_decode($args->data));
return StiResult::getSuccess("Saved to '$reportPath'.");
};
$viewer->handler->process();onEndExportReport — fires after an export; $args->data holds the base64-encoded document.base64_decode($args->data) + file_put_contents — write the exported dashboard to disk.