|
List Info
Thread: Re: Big file returning blank spreadsheet
|
|
| Re: Big file returning blank spreadsheet |

|
2007-01-25 18:37:27 |
|
Parhaps you can post the bigfile.pl program modified for mod_perl and I'll see if I can debug it.
W e're running Apache 2 in PerlRun mode so it's cgi compatible. Bigfile.pl simply needs to output a header and redirect to standard out. This code works for 600 iterations, but returns blank for 6000:-
#!/usr/bin/perl -w
############################################################################### # # Example of how to extend the Spreadsheet::WriteExcel 7MB limit with # OLE::Storage_Lite:
http://search.cpan.org/search?dist=OLE-Storage_Lite # # Nov 2000, Kawai, Takanori (Hippo2000) # Mail: GCD00051 nifty.ne.jp">GCD00051 nifty.ne.jp
# http://member.nifty.ne.jp/hippo2000 #
## MODIFIED for test purposes - see http://search.cpan.org/dist/Spreadsheet-WriteExcel/
for proper documentation and examples
use strict; use warnings; use Spreadsheet::WriteExcel;
# print "Content-disposition: attachment;filename=test.xlsn"; print "Content-type: application/vnd.ms-excelnn";
my $workbook = Spreadsheet::WriteExcel->new("-"); my $worksheet = $workbook->add_worksheet();
$worksheet->set_column(0, 50, 18);
# set iteration to 50 x 600 and this works fine, but 50 x 6000 returns zero bytes
for my $col (0 .. 50) { for my $row (0 .. 6000) { $worksheet->write($row, $col, "Row: $row Col: $col"); } }
$workbook->close();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Spreadsheet::WriteExcel" group. To post to this group, send email to spreadsheet-writeexcel googlegroups.com To unsubscribe from this group, send email to spreadsheet-writeexcel-unsubscribe googlegroups.com For more options, visit this group at http://groups-beta.google.com/group/spreadsheet-writeexcel?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Big file returning blank spreadsheet |

|
2007-01-26 07:35:18 |
|
On Jan 26, 12:37 am, "Stuart Peters" googlemail.com>
wrote:
> > Parhaps you can post the bigfile.pl program modified for mod_perl and
> > I'll see if I can debug it.
> We're running Apache 2 in PerlRun mode so it's cgi compatible.
> Bigfile.plsimply needs to output a header and redirect to standard
> out. This code works for 600 iterations, but returns blank for 6000:-
Hi Stuart,
I managed to reproduce the problem. It occurs with Apache::RunPerl but
not without it.
I have an idea where the problem is (in OLE::Storage_Lite) and how to
fix it but I need to do some more testing.
In the meantime the following workaround should fix the problem. Change
"-" to *STDOUT in the constructor:
my $workbook = Spreadsheet::WriteExcel->new(*STDOUT);
John.
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Spreadsheet::WriteExcel" group.
To post to this group, send email to spreadsheet-writeexcel googlegroups.com
To unsubscribe from this group, send email to spreadsheet-writeexcel-unsubscribe googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/spreadsheet-writeexcel?hl=en
-~----------~----~----~----~------~----~------~--~---
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|