Converting Excel 97/2003 workbook to Excel 2007 workbook

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
CareAll
Posts: 28
Joined: Mon Jun 24, 2013 9:30 am

Converting Excel 97/2003 workbook to Excel 2007 workbook

Post 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?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

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

Post by larsa »

Hello

I can't reproduce that. Do you have the latest update?
Lars Arvidsson, Axolot Data
CareAll
Posts: 28
Joined: Mon Jun 24, 2013 9:30 am

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

Post by CareAll »

I was using 5.10.25, now I tried 5.10.26 but the error still occurs. :(
Post Reply