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: 58424
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Spreadsheet-WriteExcel

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

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



Subject: Foreground (text) Color Issue --- Module Version: 2.37
Date: Tue, 15 Jun 2010 14:55:02 -0500
To: bug-Spreadsheet-WriteExcel [...] rt.cpan.org
From: Eric Hansen <ejhansen71 [...] gmail.com>
first of all - this is an awesome module without which I would be doing many manual reports. Module Version: 2.37 The issue is when wanting to set Text color (i.e. Foreground Color) - the documentation states: Pattern Cell pattern pattern set_pattern() Background color bg_color set_bg_color() *Foreground color fg_color set_fg_color()* This does not work. To set the text color the following works instead: *Foreground color color set_color()* I assume the easiest fix is to update the documentation. Thanks! -- Eric Hansen 5526 Alexandria Dr Lake in the Hills, IL 60156 847-802-9071
On Tue Jun 15 15:55:37 2010, ejhansen71@gmail.com wrote: Show quoted text
> first of all - this is an awesome module without which I would be
doing many Show quoted text
> manual reports. > > Module Version: 2.37 > The issue is when wanting to set Text color (i.e. Foreground Color) - the > documentation states: > > > Pattern Cell pattern pattern set_pattern() > Background color bg_color set_bg_color() > *Foreground color fg_color set_fg_color()* > > This does not work. To set the text color the following works instead: > *Foreground color color set_color()*
Hi, The foreground colour refers to the foreground of the cell (or the pattern of the cell). This follows from the Excel dialog boxes. The text (or more accurately the font) colour is set via set_color(). Since you think that this is unclear I will add some additional text to the docs. Thanks, John. -- Show quoted text
> > I assume the easiest fix is to update the documentation. > > Thanks!