Cannot open output file in Excel 2007!

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
pmal
Posts: 12
Joined: Fri Nov 13, 2009 8:01 am

Cannot open output file in Excel 2007!

Post by pmal »

Hello,

I have a big problem with XLSReadWriteII.
I have file Sample.xls.
I run this simple procedure under Delphi 2010:

Procedure Test;

var
XLS: TXLSReadWriteII4;
path: string;
begin
XLS:= TXLSReadWriteII4.Create(nil);
path:= ExtractFilePath(Application.ExeName);
CopyFile(pchar(path + 'sample.xls'),pchar(path + 'sampleVV.xls'),False);
XLS.Filename:= path + 'sampleVV.xls';
XLS.Read;
XLS.Write;
XLS.Free;
end;

It is ok in XLSReadWriteII version 4.0.21 but is not possible open output file in Excel 2007 in higher versions of XLSReadWriteII4.
I tested it in version 4.0.23, 4.0.25, 4.0.26, 4.0.27, 4.0.28, 4.0.29.
Input file Sample.xls and output files Sample21.xls (created in version 4.0.21) and
Sample29.xls (created in version 4.0.29) we are send to support email.

PMal
Post Reply