Skip Menu |

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.

Report information
The Basics
Id: 71085
Status: resolved
Priority: 0/
Queue: Spreadsheet-WriteExcel

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: center_across only works the first time the format is used
Date: Tue, 20 Sep 2011 12:52:30 +0200
To: bug-Spreadsheet-WriteExcel [...] rt.cpan.org
From: Florian Breitwieser <florian.bw [...] gmail.com>
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
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?
Subject: centre_across.jpg
Download centre_across.jpg
image/jpeg 15.4k
centre_across.jpg
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.
Subject: Screenshot.png
Download Screenshot.png
image/png 7.8k
Screenshot.png
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. --
Images.
Subject: centre_across_libreoffice_334.jpg
centre_across_libreoffice_334.jpg
Subject: centre_across_libreoffice_343.jpg
centre_across_libreoffice_343.jpg
Close for reasons give on rt.cpan.org.