diff --git a/components/ILIAS/Test/src/ExportImport/ResultsExportExcel.php b/components/ILIAS/Test/src/ExportImport/ResultsExportExcel.php index 65e6f2cf966a..b10014b4cca7 100755 --- a/components/ILIAS/Test/src/ExportImport/ResultsExportExcel.php +++ b/components/ILIAS/Test/src/ExportImport/ResultsExportExcel.php @@ -120,6 +120,13 @@ public function withUserPages(): self public function write(): ?string { $path = \ilFileUtils::ilTempnam() . $this->filename; + + $this->worksheet->setFormat(\ilExcel::FORMAT_XML); + $extension = '.' . strtolower(\ilExcel::FORMAT_XML); + if (!str_ends_with($path, $extension)) { + $path .= $extension; + } + $this->worksheet->writeToFile($path); return $path; }