Converting from XLS to XLSX
Posted: Wed Jan 25, 2017 8:28 am
Is there any way to convert an xls file to xlsx.
I tried the following code but it does not work:
xls := TXLSReadWriteII4.Create(Self);
xls.Filename := 'InputFile.xls';
xls.Read;
xls.Version := xvExcel2007;
xls.Filename := 'OutputFile.xlsx';
xls.Write;
Excel displays the following error when I try to read the file:
- Excel found unreadable content in file OutputFile.xlsx
I tried the following code but it does not work:
xls := TXLSReadWriteII4.Create(Self);
xls.Filename := 'InputFile.xls';
xls.Read;
xls.Version := xvExcel2007;
xls.Filename := 'OutputFile.xlsx';
xls.Write;
Excel displays the following error when I try to read the file:
- Excel found unreadable content in file OutputFile.xlsx