This queue is for tickets about the Spreadsheet-WriteExcel CPAN distribution.
Maintainer(s)' notes
If you are reporting a bug in Spreadsheet::WriteExcel here are some pointers
1) State the issues as clearly and as concisely as possible. A simple program or Excel test file (see below) will often explain the issue better than a lot of text.
2) Provide information on your system, version of perl and module versions. The following program will generate everything that is required. Put this information in your bug report.
#!/usr/bin/perl -w
print "\n Perl version : $]";
print "\n OS name : $^O";
print "\n Module versions: (not all are required)\n";
my @modules = qw(
Spreadsheet::WriteExcel
Parse::RecDescent
File::Temp
OLE::Storage_Lite
IO::Stringy
Spreadsheet::ParseExcel
Scalar::Util
Unicode::Map
);
for my $module (@modules) {
my $version;
eval "require $module";
if (not $@) {
$version = $module->VERSION;
$version = '(unknown)' if not defined $version;
}
else {
$version = '(not installed)';
}
printf "%21s%-24s\t%s\n", "", $module, $version;
}
__END__
3) Upgrade to the latest version of Spreadsheet::WriteExcel (or at least test on a system with an upgraded version). The issue you are reporting may already have been fixed.
4) Create a small but complete example program that demonstrates your problem. The program should be as small as possible. At the same time it should be a complete program that generates an Excel file. If the Spreadsheet::WriteExcel section is part of a much larger program then simplify it down to the essentials. Simulate any DB reads with an array.
5) Say if you tested with Excel, OpenOffice, Gnumeric or something else. Say which version of that application you used.
6) If you are submitting a patch you should check with the author whether the issue has already been patched or if a fix is in the works. Patches should be accompanied by test cases.
Asking a question
If you would like to ask a more general question there is the Spreadsheet::WriteExcel Google Group.
Owner: |
Nobody in particular
|
Requestors: |
florian.bw [...] gmail.com
|
Cc: |
|
AdminCc: |
|
|
Severity: |
(no value)
|
Broken in: |
(no value)
|
Fixed in: |
(no value)
|
centre_across.jpg
centre_across_libreoffice_334.jpg
centre_across_libreoffice_343.jpg
Screenshot.png
|
Tue Sep 20 06:53:03 2011
florian.bw [...] gmail.com - Ticket created
Hi developers of Spreadsheet::WriteExcel,
thanks for the great module. I have great pleasure exploring its possibilities.
I think a bug exists in the format center_across - only the first time
it is used it actually centers across the rows. Below a modified
version of merge1.pl:
#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcel;
# Create a new workbook and add a worksheet
my $workbook = Spreadsheet::WriteExcel->new("merge1.xls");
my $worksheet = $workbook->add_worksheet();
# Create a merge format
my $format = $workbook->add_format(center_across => 1);
# Only one cell should contain text, the others should be blank.
$worksheet->write (2, 1, "Center across selection", $format);
$worksheet->write_blank(2, 2, $format);
$worksheet->write_blank(2, 3, $format);
# Write a second line
$worksheet->write (3, 1, "Center across 2", $format);
$worksheet->write_blank(3, 2, $format);
$worksheet->write_blank(3, 3, $format);
System info:
Perl version 5.014001
OS name linux
Module versions Spreadsheet::WriteExcel 2.37
Best regards,
Florian
Tue Sep 20 08:28:08 2011
jmcnamara [...] cpan.org - Correspondence added
On Tue Sep 20 06:53:03 2011, florian.bw@gmail.com wrote:
Show quoted text> Hi developers of Spreadsheet::WriteExcel,
Hi Florian,
There is just one developer. :-)
Show quoted text> I think a bug exists in the format center_across - only the first time
> it is used it actually centers across the rows. Below a modified
> version of merge1.pl:
Thanks for the detailed example.
However, I don't see this is in Excel 2007 (image attached) or LibreOffice.
What application and version are you testing with?
Tue Sep 20 08:28:10 2011
The RT System itself - Status changed from 'new' to 'open'
Tue Sep 20 09:25:10 2011
http://florianbw.myopenid.com/ - Correspondence added
Show quoted text> There is just one developer. :-)
Ok, then thank you :), also for the fast answer.
I'm seeing this in LibreOffice 3.4.3 (see the attached screenshot). I
now checked the same file with Excel 2007 and it displays as expected
and spans over the columns just as in your screenshot.
In your manual it says that for true merging merge_range() should be
used. Interestingly, in LibreOffice, the centered_across cells behave as
if they are merged (see screenshot). In Excel, the cells can be selected
individually.
Tue Sep 20 12:51:46 2011
jmcnamara [...] cpan.org - Correspondence added
On Tue Sep 20 09:25:10 2011,
http://florianbw.myopenid.com/ wrote:
Show quoted text> I'm seeing this in LibreOffice 3.4.3 (see the attached screenshot).
Strange, it doesn't occur in LibreOffice 3.3.4 but does in LibreOffice
3.4.3 (screenshots attached).
As such it looks like a LibreOffice issue. Perhaps you should report it.
I'll close this ticket if you have no objections.
Show quoted text> In your manual it says that for true merging merge_range() should be
> used. Interestingly, in LibreOffice, the centered_across cells behave as
> if they are merged (see screenshot). In Excel, the cells can be selected
> individually.
The Excel behaviour is the correct one (for Excel). Center Across cells
behave individually whilst merged cells behave as one.
Regards,
John.
--
Tue Sep 20 12:52:25 2011
jmcnamara [...] cpan.org - Correspondence added
Wed Nov 21 15:18:51 2012
jmcnamara [...] cpan.org - Correspondence added
Close for reasons give on rt.cpan.org.
Wed Nov 21 15:18:52 2012
jmcnamara [...] cpan.org - Status changed from 'open' to 'resolved'