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: |
jmcnamara [...] cpan.org
|
Requestors: |
divanov [...] creditreform.bg
|
Cc: |
|
AdminCc: |
|
|
Severity: |
Normal |
Broken in: |
2.11 |
Fixed in: |
(no value)
|
|
Tue Mar 01 09:58:30 2005
Guest - Ticket created
Hi,
I've had problems using perl's internal utf8-encoded strings in add_worksheet. Example follows:
Show quoted text------ the file must be encoded in utf8 ----------
use utf8;
use Spreadsheet::WriteExcel;
my $wb = Spreadsheet::WriteExcel->new('/tmp/test.xls');
my $ws = $wb->add_worksheet('some non-ascii name');
$wb->close();
---------------- cut ----------------
Now try to open /tmp/test.xls - both Gnumeric and openoffice.org reported invalid format to me.
The patch attached adds support for newer perls' native utf8 encoding, similar to what is done in Worksheet->write_string().
Thanks for considering and many thanks for writing Spreadsheet::WriteExcel!
dam
Message body not shown because it is not plain text.
Tue Mar 01 10:52:47 2005
jmcnamara [...] cpan.org - Taken
Tue Mar 01 12:35:31 2005
jmcnamara [...] cpan.org - Correspondence added
[guest - Tue Mar 1 09:58:30 2005]:
Show quoted text> I've had problems using perl's internal utf8-encoded strings in
> add_worksheet.
This feature was scheduled for the next release. I will post a patch
later today and hopefully integrate it into a release in the next few days.
Also, in relation to your post on the Debian list about
Spreadsheet::ParseExcel have a look at the following:
http://www.cpanforum.com/threads/151
John.
--
Wed Mar 02 07:00:41 2005
Guest - Correspondence added
John,
Many thanks for your prompt response.
I've tried to reply to RT via email, but my email never appeared here,
so here we go again...
|>I've had problems using perl's internal utf8-encoded strings in
|>add_worksheet.
|
| This feature was scheduled for the next release. I will post a patch
| later today and hopefully integrate it into a release in the next few
days.
This is great!
I'll get my ski vacation next ten days, so access to my mailbox will be
sparse. If the next release is a matter of days, then there is no point
of patching the Debian package, I guess.
| Also, in relation to your post on the Debian list about
| Spreadsheet::ParseExcel have a look at the following:
|
|
http://www.cpanforum.com/threads/151
I've tried it and it works like a charm.
dmpEx.pl (from examples) over a .xls created with gnumeric, using all
sorts of bulgarian (cyrillic) letters both in sheet names and cells
dumps everithing correct. The only complain is about "Wide character in
print at dmpEx.pl line 20.", but I guess this is quite normal, since the
STDOUT is not flagged with binmode STDOUT, ':utf8'
Do you expect to make a release, integrating this change, or shall I
request that the debian package be patched? The latter may be a good
idea if you need broader testing.
Thanks again,
dam
Mon Mar 21 11:23:08 2005
jmcnamara [...] cpan.org - Correspondence added
Hi,
It took me a little longer than anticpated to write and test this
feature but here is a pre-release version if you care to try it:
http://homepage.eircom.net/~jmcnamara/perl/Spreadsheet-WriteExcel-2.11.01.tar.gz
You can now use utf8 for:
* Worksheet names
* Headers and footers
* Font names
* Number formats
But not formulas (yet).
Let me know if you have any problems.
John.
--
Tue Mar 29 05:35:11 2005
jmcnamara [...] cpan.org - Status changed from 'new' to 'resolved'
Thu Apr 07 09:59:53 2005
Guest - Correspondence added
[JMCNAMARA - Mon Mar 21 11:23:08 2005]:
Show quoted text> It took me a little longer than anticpated to write and test this
> feature but here is a pre-release version if you care to try it:
Before I got a chance to try it, the Debian maintainer, Gunnar Wolf,
packaget it, so I've got it from the regular Debian update.
So far everithing works just fine.
Many thanks for your efforts.
dam
Thu Apr 07 09:59:54 2005
The RT System itself - Status changed from 'resolved' to 'open'
Thu Apr 07 18:44:10 2005
jmcnamara [...] cpan.org - Correspondence added
[guest - Thu Apr 7 09:59:53 2005]:
Show quoted text> Before I got a chance to try it, the Debian maintainer, Gunnar Wolf,
> packaget it, so I've got it from the regular Debian update.
:-) I must add Gunnar to the acknowledgements.
Show quoted text>
> So far everithing works just fine.
>
Good. If you are interested you could create an example in Bulgarian for
the examples directory of the distro.
John.
--