Page 1 of 1

Converting Excel 97/2003 workbook to Excel 2007 workbook

Posted: Mon Jun 24, 2013 3:26 pm
by CareAll
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?

Re: Converting Excel 97/2003 workbook to Excel 2007 workbook

Posted: Tue Jun 25, 2013 4:48 pm
by larsa
Hello

I can't reproduce that. Do you have the latest update?

Re: Converting Excel 97/2003 workbook to Excel 2007 workbook

Posted: Tue Jul 02, 2013 7:19 pm
by CareAll
I was using 5.10.25, now I tried 5.10.26 but the error still occurs. :(