OpenOffice-OODoc - Re: empty cell or col bug or feature of getTableText in 2.113 dist?

Posted on Mon Aug 21 18:16:29 2006 by mlcohen in response to 2805 (See the whole thread of 18)
Re: empty cell or col bug or feature of getTableText in 2.113 dist?
I don't know what to say...I have your sample code exactly as you posted before:
#!/usr/bin/perl -w use strict; use OpenOffice::OODoc; my $doc= ooDocument(file => "test.ods"); $doc->{'field_separator'}= ",\t"; my $normsheet = $doc->normalizeSheet("Sheet1", 10, 10); my $sheet= $doc->getTableText($normsheet, 10, 10); #my $sheet= $doc->getTableText("Sheet1", 1000, 1000); print $sheet;
and it works perfectly for me. I have your original line commented out, and I get the same results as you had, and then I replace it with the two lines about normsheet and everything works. Did you try the simple test case again, with the new code? Or are you trying in your full ods2csv script? Try the test case again, I bet it will work, and the problem is elsewhere in the script. And don't worry, this package is a bit confusing to use at first, just like anything that's powerful...it will take a bit of time to figure out what makes it tick. And sometimes, there are bugs :)

-Matt
Direct Responses: 2924 | Write a response