Explorar o código

Report, page mode, export xlsx

MaiXinRong %!s(int64=8) %!d(string=hai) anos
pai
achega
679a4686fa
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Forms/ReportsFrm.pas

+ 4 - 1
Forms/ReportsFrm.pas

@@ -1468,7 +1468,10 @@ begin
       iCount := 1;
       repeat
       begin
-        sFileName := Format('%s[%d].xls', [ExtractSimpleFileName(AFileName), iCount]);
+        if IsExcel2010 then
+          sFileName := Format('%s[%d].xlsx', [ExtractSimpleFileName(AFileName), iCount]);
+        else
+          sFileName := Format('%s[%d].xls', [ExtractSimpleFileName(AFileName), iCount]);
         ExportPagesXlsReport(iStartPage, iEndPage, sFileName);
         iStartPage := iStartPage + 20;
         iEndPage := Min(iEndPage + 20, PrintEndPage);