I've browsed all entries of this forum but couldn't any hint to solve my problem:
My OO-Writer document has a two-column table and
I want to detect if the first cell of the second column is empty and I use the following code:
my $CellVal2 = $doc->cellValue($Tablename,0,1) ;
if ( defined $CellVal2 && "" ne $CellVal2 ) {
print "Row is NOT empty\n" if ($Verbose);
} else {
print "Row is empty\n" if ($Verbose);
}
This works as long as the cell (0,1) only contains normal text.
As soon as the cell contains an enumeration like this
1 Item1
2 Item2
or a more complicated, formatted sturcture,
the code doesn't work any more.
So, my question is:
How can I detect if a table cell is empty?
Best regards,
Siegfried Kurz