Page 1 of 1

Create new Excel97 file

Posted: Tue Mar 13, 2018 1:53 pm
by Moisha
Hi.
This code generates error 'Can not convert XLSX to XLS' because FBIFF is not created until I load Excel97 file from disk

Code: Select all

FExcel := TXLSReadWriteII5.Create(nil);
FExcel.SaveToFile(fileName, xvExcel97);
How can I create new Excel97 file?

Regards.
Moisha.

Re: Create new Excel97 file

Posted: Wed Mar 21, 2018 9:00 am
by larsa
Hello

Example:

Code: Select all

XLS.Version := xvExcel97;
XLS.SaveToFile('test.xls');