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: 62675
Status: resolved
Priority: 0/
Queue: Spreadsheet-WriteExcel

People
Owner: Nobody in particular
Requestors: nelson_bigmouth [...] yahoo.com
Cc:
AdminCc:

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



Subject: Potential bug in Spreadsheet::WriteExcel
Date: Wed, 3 Nov 2010 11:32:27 -0700 (PDT)
To: bug-Spreadsheet-WriteExcel [...] rt.cpan.org
From: Nelson Chan <nelson_bigmouth [...] yahoo.com>
Hi, I would like to report a bug in the Spreadsheet::WriteExcel perl module. If data is written to the same cell twice in a worksheet, Excel can open the spreadsheet but gives the error "File error: data may have been lost". Here is the sample of the perl script: ############################################################# use Spreadsheet::WriteExcel; # Create a new Excel workbook my $workbook = Spreadsheet::WriteExcel->new('perl.xls'); # Add a worksheet $worksheet = $workbook->add_worksheet(); # Try to write data to the same cell $worksheet->write(0,0,'Test'); $worksheet->write(0,0,'Test'); ############################################################# System information: Module: Spreadsheet-WriteExcel-2.37 Perl: 5.8.8 Platform: Sun Sparc Solaris 5.10 Excel: Excel 2007 SP2 Please let me know if you need other information. Thanks! Nelson Chan
On Wed Nov 03 14:33:57 2010, nelson_bigmouth@yahoo.com wrote: Show quoted text
> If data is written to the same cell twice in a worksheet, Excel can > open the > spreadsheet but gives the error "File error: data may have been lost".
Hi Nelson, Thanks for that. This is a known issue that was introduced by Office SP3. It is documented in the main Spreadsheet::WriteExcel documentation: http://search.cpan.org/~jmcnamara/Spreadsheet- WriteExcel/lib/Spreadsheet/WriteExcel.pm#Warning_about_Office_Service_Pack_3 And explained in more detail, including workarounds in the following FAQ: http://groups.google.com/group/spreadsheet- writeexcel/browse_thread/thread/3dcea40e6620af3a John. -
Subject: Re: [rt.cpan.org #62675] Potential bug in Spreadsheet::WriteExcel
Date: Fri, 5 Nov 2010 07:54:40 -0700 (PDT)
To: bug-Spreadsheet-WriteExcel [...] rt.cpan.org
From: Nelson Chan <nelson_bigmouth [...] yahoo.com>
Thanks for pointing this out. Should read through the whole documentation clearly first before submitting a bug. Nelson Chan Show quoted text
________________________________ From: John McNamara via RT <bug-Spreadsheet-WriteExcel@rt.cpan.org> To: nelson_bigmouth@yahoo.com Sent: Wed, November 3, 2010 3:40:59 PM Subject: [rt.cpan.org #62675] Potential bug in Spreadsheet::WriteExcel <URL: https://rt.cpan.org/Ticket/Display.html?id=62675 > On Wed Nov 03 14:33:57 2010, nelson_bigmouth@yahoo.com wrote:
> If data is written to the same cell twice in a worksheet, Excel can > open the > spreadsheet but gives the error "File error: data may have been lost".
Hi Nelson, Thanks for that. This is a known issue that was introduced by Office SP3. It is documented in the main Spreadsheet::WriteExcel documentation: http://search.cpan.org/~jmcnamara/Spreadsheet- WriteExcel/lib/Spreadsheet/WriteExcel.pm#Warning_about_Office_Service_Pack_3 And explained in more detail, including workarounds in the following FAQ: http://groups.google.com/group/spreadsheet- writeexcel/browse_thread/thread/3dcea40e6620af3a John. -
Hi Nelson, Thanks for that. I'll close the issue. John. --