Create new Excel97 file

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
Moisha
Posts: 18
Joined: Wed Apr 06, 2016 1:00 pm

Create new Excel97 file

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

Re: Create new Excel97 file

Post by larsa »

Hello

Example:

Code: Select all

XLS.Version := xvExcel97;
XLS.SaveToFile('test.xls');
Lars Arvidsson, Axolot Data
Post Reply