- $srcTmp = ini_get('session.save_path') . '/' .uniqid('gnumeric_').'.gnumeric';
- $targetTmp = ini_get('session.save_path') . '/' .uniqid('gnumeric_').'.xls';
+
+ $ext = '.xls';
+ $outfmt = 'Gnumeric_Excel:excel_biff8';
+ $mime = 'application/vnd.ms-excel';
+
+ /*
+ // ssconvert results in bad images
+ if (!empty($_POST['format']) && $_POST['format']=='xlsx') {
+ $outfmt = 'Gnumeric_Excel:xlsx';
+ $ext = 'xlsx';
+ $mime = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+ }
+ */
+
+
+
+ $srcTmp = $this->tempName('gnumeric');
+ $targetTmp = $this->tempName($ext);