Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 36630
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: kc8hfi [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.102
Fixed in: 2.103



Subject: OpenOffice-OODoc-2.102
Distribution name: OpenOffice-OODoc-2.102 Perl version: This is perl, v5.8.8 built for i386-linux-thread-multi OS Info: Fedora release 8 (Werewolf), kernel 2.6.24.7-92.fc8 SMP i686 i686 i386 GNU/Linux The attached perl program is supposed to create a spreadsheet with the text "New value" in cell A1 along with the text "Brand new header" in the page header. This code works just as intended with version 2.035. In the 2.102 version, the script creates an empty file with no header and nothing in cell A1.
Subject: newspreadsheet.pl
#!/usr/bin/perl #filename: #description: use OpenOffice::OODoc; $output_file = 'myfile.ods'; my $document = ooDocument ( file => $output_file, create => 'spreadsheet' ); $numlines = 3; $numcols = 9; # select & size the 1st (and only) sheet in the document my $sheet = $document->getTable(0,$numlines,$numcols); #rename it as the input file (why not ?) $document->renameTable($sheet, "new name"); $styles = ooDocument( file => $document, member =>'styles' ); $master = $styles->getMasterPageElement('Default'); #set up the page header $headertext = "Brand new header";#. "\n$currentdate"; $headerpara = $styles->getHeaderParagraph($master,0); #apply the header $document->setText($headerpara, $headertext); $document->cellValue($sheet, 0, 0, "New value"); $document->save;
From: jmgdoc [...] cpan.org
Le Mar. Jun. 10 14:54:11 2008, kc8hfi a écrit : Show quoted text
> Distribution name: OpenOffice-OODoc-2.102 > Perl version: This is perl, v5.8.8 built for i386-linux-thread-multi > OS Info: Fedora release 8 (Werewolf), kernel 2.6.24.7-92.fc8 SMP
i686 Show quoted text
> i686 i386 GNU/Linux > > The attached perl program is supposed to create a spreadsheet with
the Show quoted text
> text "New value" in cell A1 along with the text "Brand new header" in > the page header. This code works just as intended with version
2.035. Show quoted text
> In the 2.102 version, the script creates an empty file with no header > and nothing in cell A1. >
The issue lies in the following instruction: $styles = ooDocument( file => $document, member =>'styles' ); Replacing 'member' by 'part' should fix the issue. The 'member' option is deprecated and should be replaced by 'part' one in the future. However, there is a bug in 2.103 knowing that 'member' should be supported for compatibility reasons instead of being silently ignored. This bug will be fixed in 2.103 where the 'member' option will be supported again (while not recommended).
The problem is fixed now. I will replace "member" with "part" from now on. Thanks for the help and information. On Wed Jun 11 05:13:47 2008, JMGDOC wrote: Show quoted text
> Le Mar. Jun. 10 14:54:11 2008, kc8hfi a écrit :
> > Distribution name: OpenOffice-OODoc-2.102 > > Perl version: This is perl, v5.8.8 built for i386-linux-thread-multi > > OS Info: Fedora release 8 (Werewolf), kernel 2.6.24.7-92.fc8 SMP
> i686
> > i686 i386 GNU/Linux > > > > The attached perl program is supposed to create a spreadsheet with
> the
> > text "New value" in cell A1 along with the text "Brand new header" in > > the page header. This code works just as intended with version
> 2.035.
> > In the 2.102 version, the script creates an empty file with no header > > and nothing in cell A1. > >
> > The issue lies in the following instruction: > > $styles = ooDocument( > file => $document, > member =>'styles' > ); > > Replacing 'member' by 'part' should fix the issue. > > The 'member' option is deprecated and should be replaced by 'part' one > in the future. However, there is a bug in 2.103 knowing that 'member' > should be supported for compatibility reasons instead of being > silently ignored. This bug will be fixed in 2.103 where the 'member' > option will be supported again (while not recommended). > >
OpenOffice::OODoc 2.103 is online. It should resolve the issue. Le Mer. Jun. 11 08:56:32 2008, http://openid.aol.com/kc8hfi a écrit : Show quoted text
> The problem is fixed now. I will replace "member" with "part" from now > on. Thanks for the help and information. > > > On Wed Jun 11 05:13:47 2008, JMGDOC wrote:
> > Le Mar. Jun. 10 14:54:11 2008, kc8hfi a écrit :
> > > Distribution name: OpenOffice-OODoc-2.102 > > > Perl version: This is perl, v5.8.8 built for i386-linux-thread-multi > > > OS Info: Fedora release 8 (Werewolf), kernel 2.6.24.7-92.fc8 SMP
> > i686
> > > i686 i386 GNU/Linux > > > > > > The attached perl program is supposed to create a spreadsheet with
> > the
> > > text "New value" in cell A1 along with the text "Brand new header" in > > > the page header. This code works just as intended with version
> > 2.035.
> > > In the 2.102 version, the script creates an empty file with no header > > > and nothing in cell A1. > > >
> > > > The issue lies in the following instruction: > > > > $styles = ooDocument( > > file => $document, > > member =>'styles' > > ); > > > > Replacing 'member' by 'part' should fix the issue. > > > > The 'member' option is deprecated and should be replaced by 'part' one > > in the future. However, there is a bug in 2.103 knowing that 'member' > > should be supported for compatibility reasons instead of being > > silently ignored. This bug will be fixed in 2.103 where the 'member' > > option will be supported again (while not recommended).