Converting Excel 97/2003 workbook to Excel 2007 workbook
Posted: Mon Jun 24, 2013 3:26 pm
Hello,
I tried to convert a simple xls file to xlsx. The source file contains only a letter 'A' in cell A1. I use the following code for the conversion:
XLS := TXLSReadWriteII5.Create(nil);
try
XLS.Filename := 'WS.xls';
XLS.Read;
XLS.Filename := 'WS.xlsx';
XLS.Version := xvExcel2007;
XLS.Write;
finally
FreeAndNil(XLS);
end;
When I try to open the output xlsx file, I get an error message saying /xl/styles.xml contained unreadable content.
How could this problem be solved?
I tried to convert a simple xls file to xlsx. The source file contains only a letter 'A' in cell A1. I use the following code for the conversion:
XLS := TXLSReadWriteII5.Create(nil);
try
XLS.Filename := 'WS.xls';
XLS.Read;
XLS.Filename := 'WS.xlsx';
XLS.Version := xvExcel2007;
XLS.Write;
finally
FreeAndNil(XLS);
end;
When I try to open the output xlsx file, I get an error message saying /xl/styles.xml contained unreadable content.
How could this problem be solved?