Bug when import OO Calc documents

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
alex7
Posts: 1
Joined: Sat Dec 27, 2008 6:39 pm

Bug when import OO Calc documents

Post by alex7 »

Hi!

When I'm trying to import OO Calc document using ImportOOCalc4.pas I'm getting the error - program crashes. I've fixed problem with unpacking (as in old builds).
But! After importing document - I see only blank sheet(s). LastCol & LastRow are equal to 0.

The TOOXMLTagCell.Parse procedure is not called anytime -

everytime this procedure exits after (!) ever for the simplest document:


procedure TOOXMLTag.Run;
var
i: integer;
begin
Parse;
if FOOData.XML.TagType = ttSingle then
Exit;
while FOOData.XML.GetTagNext (!) do begin
for I := 0 to Count - 1 do begin
if Items[i].FTagName = FOOData.XML.FullTag then
Items[i].Run();
end;
if (FOOData.XML.FullTag = FTagName) and (FOOData.XML.TagType = ttEnd) then begin
EndTag;
if not FRepeatTag then
Break;
end;
end;
end;


The simplest document made with OO Calc 2.4.1 (stable) (but I've checked docs created with older OO's - same problem) is here:
http://rapidshare.com/files/177312569/o ... e.ods.html

The problem seems to be simple - just to read tags with data and forward them to parser routine (which is already exists in your sources).

So - could you fix this small bug that will give great possibility to read OO documents.

P.S. Please answer because I sent this report many times to you from the September - but still no replies at all.
Thank you very much.
Post Reply