Search found 14 matches

by vga
Sat Oct 08, 2011 7:03 am
Forum: XLSReadWriteII 3/4/5
Topic: Create bad Excel 2007 .xlsx File (Zlib decompress error)
Replies: 5
Views: 9004

Re: Create Excel 2007 File Error!!

[quote="larsa"]Hello I can't find any problem with your code.[/quote] which IDE version? In delphi XE, the followinf code always says: "Zlib decompress error" procedure TForm1.btn1Click(Sender: TObject); begin xls1.Version := xvExcel2007; xls1.Sheet[0].AsInteger[1,1] := 90; xls1....
by vga
Thu Aug 11, 2011 12:49 am
Forum: XLSReadWriteII 3/4/5
Topic: about SheetProtection
Replies: 2
Views: 3700

Re: about SheetProtection

when add:
xls1.Sheets[0].SheetProtection := DefaultSheetProtections;
it work fine now.
by vga
Thu Jul 28, 2011 3:16 am
Forum: XLSReadWriteII 3/4/5
Topic: about SheetProtection
Replies: 2
Views: 3700

about SheetProtection

I want to remove Protection of a xls file,

My Code:


xls1.Filename := 'c:\aa.xls';
xls1.Read;
xls1.Sheets[0].SheetProtection := [];
xls1.Write;

it seems not work.

why?

delphi xe & xlsreadwrite II 4.0053
by vga
Sat Mar 12, 2011 1:07 pm
Forum: XLSReadWriteII 3/4/5
Topic: Create bad Excel 2007 .xlsx File (Zlib decompress error)
Replies: 5
Views: 9004

Re: Create Excel 2007 File Error!!

my ide: delphi xe xlsreadwriteII 4.00.52 procedure TForm1.btn1Click(Sender: TObject); begin xls1.Version := xvExcel2007; xls1.Sheet[0].AsInteger[1,1] := 90; xls1.Filename := 'c:\aa.xlsx'; xls1.Write; xls1.read; end; it did create 'c:\aa.xlsx' file, but when run to: xls1.Read; error occur: "Zlib...
by vga
Tue Mar 08, 2011 1:45 pm
Forum: XLSReadWriteII 3/4/5
Topic: Create bad Excel 2007 .xlsx File (Zlib decompress error)
Replies: 5
Views: 9004

Re: Create Excel 2007 File Error!!

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; can not work.
by vga
Mon Mar 07, 2011 7:55 am
Forum: XLSReadWriteII 3/4/5
Topic: Create bad Excel 2007 .xlsx File (Zlib decompress error)
Replies: 5
Views: 9004

Re: Create Excel 2007 File Error!!

How to create a Excel 2007 File?
by vga
Sat Jan 29, 2011 2:43 am
Forum: XLSReadWriteII 3/4/5
Topic: Vista + Excel 2007 + Russian Charset
Replies: 9
Views: 10508

Re: Vista + Excel 2007 + Russian Charset

procedure TForm1.btn1Click(Sender: TObject);
begin
xls1.Version := xvExcel2007;
xls1.Sheet[0].AsInteger[1,1] := 90;
xls1.Filename := 'c:\aa.xlsx';
xls1.Write;
end;

'c:\aa.xlsx'; could not open by Excel 2007 , why?
by vga
Sat Jan 29, 2011 2:18 am
Forum: XLSReadWriteII 3/4/5
Topic: Create bad Excel 2007 .xlsx File (Zlib decompress error)
Replies: 5
Views: 9004

Create bad Excel 2007 .xlsx File (Zlib decompress error)

hello: My code: uses BIFFRecsII4,XLSFonts4, XLSReadWriteII4; procedure TForm1.btn1Click(Sender: TObject); begin xls1.Version := xvExcel2007; xls1.Sheet[0].AsInteger[1,1] := 90; xls1.Filename := 'c:\aa.xlsx'; xls1.Write; xls1.Read; end; xlsreadwrite version 4.0.0.X Error Info: "Zlib decompress e...
by vga
Thu Jul 31, 2008 11:35 am
Forum: XLSReadWriteII 3/4/5
Topic: XLSReadWriteII 4: Excel 97 file with more than 57344 rows
Replies: 7
Views: 7351

ok!!!

procedure TForm1.btn1Click(Sender: TObject); var i: Integer; begin xls.Filename := 'c:\aa.xls'; xls.Sheets[0].AsString [0, 0] := 'Counter'; for i := 1 to 65535 do begin xls.sheets[0].AsString [0, i] := IntToStr (i); xls.sheets[0].AsString [1, i] := 'Knappensee-Gro? S?rchen'; end; xls.Write; end;
by vga
Thu Jul 31, 2008 6:14 am
Forum: XLSReadWriteII 3/4/5
Topic: Unicode String Write
Replies: 2
Views: 2639

I 've got it!

I 've got it!

I rewrite Function IsUnicode .
by vga
Thu Jul 31, 2008 4:47 am
Forum: XLSReadWriteII 3/4/5
Topic: Unicode String Write
Replies: 2
Views: 2639

example

procedure TForm1.btn1Click(Sender: TObject);
begin
XLSR.Read;
XLSR.Sheets[0].AsString[2, 2] := XLSR.Sheets[0].AsString[1, 1];
XLSR.Write;
end;


XLSR.Sheets[0].AsString[1, 1] : Kißlegg

then

XLSR.Sheets[0].AsString[2, 2] : Ki?legg
by vga
Thu Jul 31, 2008 12:04 am
Forum: XLSReadWriteII 3/4/5
Topic: Unicode String Write
Replies: 2
Views: 2639

Unicode String Write

My OS: windows XP sp3 (chinese)

I use xlsreadwriteII 3.

I write a unicode string to a xls file.

when open xls file, the char of unicode string change to '?'



Thank you very much.

Regards
by vga
Wed Jul 30, 2008 5:43 am
Forum: XLSReadWriteII 3/4/5
Topic: Unicode judgment failed
Replies: 5
Views: 4213

delphi 7.0 & delphi 2007

delphi 7.0 & delphi 2007 do not work well before rewrite isunicode function
by vga
Tue Jul 29, 2008 9:31 pm
Forum: XLSReadWriteII 3/4/5
Topic: Unicode judgment failed
Replies: 5
Views: 4213

the same error i reproduced!

xlrReadWrite.Sheet[0].AsString[0, 0] := tntedit.text; // ÜB This result in EXCEL is failed. The one-byte character "?"appear instead of U with accent mark AsString[1,1] := WideChar($03C0); work well. "When I test this, I get the correct characters. The problem is probably the font you...