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

People
Owner: jmcnamara [...] cpan.org
Requestors: misha [...] thunderworx.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.02
  • 2.03
Fixed in: (no value)



Subject: Bad Excel file structure created.
Module: Spreadsheet-WriteExcel-2.03 Perl: v5.8.0 built for i386-linux-thread-multi OS: Linux Red Hat 9 (2.4.20-18.9) I created Excel file and tryed to open it in the MS Excel: "The memory could not be read!". OpenOffice opens that file without any errors or warnings. If you are interested of I can send you created Excel file to see it structure. Thanks in advanced, Michael
[guest - Tue Aug 3 08:32:13 2004]: Show quoted text
> I created Excel file and tryed to open it in the MS Excel: "The memory > could not be read!". OpenOffice opens that file without any errors or > warnings.
Hi, See if you can reduce the problem down to a small test program. See the beg_report.pl program in the distro for an example: http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel-2.03/examples/bug_report.pl Also check the following: 1. That you aren't writing UTF data from an XML file to the spreadsheet. 2. That the file didn't get corrupted in an ascii mode ftp to a Windows system. 3. That you aren't using the format for a merge_range() in a non-merge range. 4. That you aren't generating more than 1000 formats. Post the results here or send them to me directly. John. --
[guest - Tue Aug 3 08:32:13 2004]: Show quoted text
> I created Excel file and tryed to open it in the MS Excel: "The memory > could not be read!". OpenOffice opens that file without any errors > or warnings.
Any update on this. John. --
[JMCNAMARA - Wed Aug 4 18:04:34 2004]: Show quoted text
> [guest - Tue Aug 3 08:32:13 2004]: >
> > I created Excel file and tryed to open it in the MS Excel: "The
> memory
> > could not be read!". OpenOffice opens that file without any errors
> or
> > warnings.
> > Hi, > > See if you can reduce the problem down to a small test program. See > the > beg_report.pl program in the distro for an example: > > http://search.cpan.org/src/JMCNAMARA/Spreadsheet-WriteExcel- > 2.03/examples/bug_report.pl > > Also check the following: > > 1. That you aren't writing UTF data from an XML file to the > spreadsheet. > > 2. That the file didn't get corrupted in an ascii mode ftp to a > Windows > system. > > 3. That you aren't using the format for a merge_range() in a non-merge > range.
I think my problem was in merging a non-merge range. When I removed that operation error disappeared! This ticket can be resolved! Show quoted text
> > 4. That you aren't generating more than 1000 formats. > > Post the results here or send them to me directly. > > John.
The docs for version 2.04 will try to clarify this problem and a version in the near future should resolve it. John. --