xlsreadwrite vs Excel2007
vga 2012-05-22 06:13:13 我在Axolot Data 官方论坛问过这个问题:
by vga » Tue Mar 08, 2011 1:45 pm
with the new version 4.0049 I could not create a good .XLSX file too.
procedure TForm1.btn1Click(Sender: TObject);
begin
xls1.Version := xvExcel2007;
xls1.Sheet[0].AsInteger[1,1] := 90;
xls1.Filename := 'c:\aa.xlsx';
xls1.Write;
end;
it did create 'c:\aa.xlsx' file, but
xls1.Read; // run to here, error occur: "Zlib decompress error" <--------------- 错误
can not work.
vga
回答:
Posts: 14
Joined: Tue Jul 29, 2008 9:19 pm
Top
Re: Create Excel 2007 File Error!!
by larsa » Thu Mar 10, 2011 8:40 pm
Hello
I can't find any problem with your code.
Lars Arvidsson, Axolot Data
可是它的确无法创建一个可用的 xlsx 文件。
大家是怎样解决的?