|
Hello and thank you for your interest!
Here you are a sample code to "delete the first column of the second sheet".
#!/usr/bin/perl -w
use OpenOffice::OODoc;
use strict;
my $oofile=ooFile("./Example-102.ods"); # very basic ODS file with only data at the second sheet.
$oofile->{doc}=ooDocument(file=>$oofile,member=>'content');
$oofile->{styles}=ooDocument(file=>$oofile,member=>'styles');
my $sheet2 = $oofile->{doc}->getTable(1, 8, 2);
$oofile->{doc}->deleteColumn($sheet2, 0);
$oofile->save;
The next code works very well until the 2.102 version.
My platform is:
* OpenOffice 2.4.0
* Perl 5.8.8
* GNU/Linux Ubuntu 8.04
Thanks in advance,
Peco
|