diff --git a/applications/spready/smain.pas b/applications/spready/smain.pas index 8e26c3274..497ce0c59 100644 --- a/applications/spready/smain.pas +++ b/applications/spready/smain.pas @@ -8,7 +8,7 @@ uses Classes, SysUtils, FileUtil, mrumanager, Forms, Controls, Graphics, Dialogs, ExtCtrls, ComCtrls, ActnList, Menus, StdActns, Buttons, Grids, StdCtrls, types, fpstypes, fpspreadsheet, fpspreadsheetctrls, fpspreadsheetgrid, - fpsActions, fpsAllFormats, fpsSYLK, xlsBIFF4, xlsxml, xlsxooxml_crypto; + fpsActions, fpsAllFormats, fpsSYLK, xlsBIFF34, xlsxml, xlsxooxml_crypto; // NOTE: // In order to use the decrypting xlsx reader put xlsxooxlm_cryto after // xlsxooxml or fpsAllforamts. @@ -1295,7 +1295,7 @@ end; procedure TMainForm.FormCreate(Sender: TObject); var - priorityFormatsR: Array[0..9] of TsSpreadFormatID; + priorityFormatsR: Array[0..10] of TsSpreadFormatID; priorityFormatsW: Array[0..8] of TsSpreadFormatID; i: Integer; begin @@ -1315,12 +1315,13 @@ begin priorityFormatsR[1] := ord(sfExcel8); priorityFormatsR[2] := ord(sfExcel5); priorityFormatsR[3] := sfidExcel4; - priorityFormatsR[4] := ord(sfExcel2); - priorityFormatsR[5] := ord(sfExcelXML); - priorityFormatsR[6] := ord(sfOpenDocument); - priorityFormatsR[7] := ord(sfCSV); - priorityFormatsR[8] := sfidSYLK; - priorityFormatsR[9] := ord(sfHTML); + priorityFormatsR[4] := sfidExcel3; + priorityFormatsR[5] := ord(sfExcel2); + priorityFormatsR[6] := ord(sfExcelXML); + priorityFormatsR[7] := ord(sfOpenDocument); + priorityFormatsR[8] := ord(sfCSV); + priorityFormatsR[9] := sfidSYLK; + priorityFormatsR[10] := ord(sfHTML); priorityFormatsW[0] := ord(sfOOXML); priorityFormatsW[1] := ord(sfExcel8);