Click here to get back home

Spreadsheet::WriteExcel

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Spreadsheet::WriteExcel Raj 12-07-2005
Get Chitika Premium
Posted by Raj on December 7, 2005, 3:50 pm
Please log in for more thread options


Hi,

I was hoping someone could advise me on an issue with files created with the
Spreadsheet::WriteSheet module. I am creating file using the module and
these files are sent to another server which uses Microsoft ADO Jet Drivers
but is unable to open the files.

When a person manually opens the file and resaves the file in Excel
(incidentally, its Excel 95 format and is kept in that version), the
automatic process manages to open the file.

Is there something I can do to ensure the compatibility of my Excel files?
Or can anyone think of a reason why it may be unreadable?

Do I need to provide any more information?

Thanks in advance!


--
Raj Kothary :: one|concept




Posted by jmcnamara on December 7, 2005, 1:53 pm
Please log in for more thread options


> I am creating file using the module and
> these files are sent to another server which uses Microsoft ADO
> Jet Drivers but is unable to open the files.

Try the most recent version of the Spreadsheet::WriteExcel, 2.15, which
produces files in the Excel 97 format.

This behaves better with ODBC, and hopefully with Jet as well.

John.
--



Posted by Raj on February 4, 2006, 3:15 pm
Please log in for more thread options



>> I am creating file using the module and
>> these files are sent to another server which uses Microsoft ADO
>> Jet Drivers but is unable to open the files.
>
> Try the most recent version of the Spreadsheet::WriteExcel, 2.15, which
> produces files in the Excel 97 format.
>
> This behaves better with ODBC, and hopefully with Jet as well.
>
> John.

Thanks John...I did do this and it did the trick. I am now having an issue
with creating files with a large number of lines. I used to create files
with 14000 lines, but it seems to be giving me problems now. This is the
loop that creates the worksheets:

# Process the output
foreach my $flds (@report) {
next unless $flds;
for(my $i=0;$i<scalar(@$flds);$i++) {
if (0==$row) {
$sheet->write($row,$i,$flds->[$i],$heading);
next;
}
$sheet->write($row,$i,$flds->[$i], $font_size);
}
$row++;
}

Can you see why this would work for a few rows but not for even 5000?

Thanks
Raj



Posted by Kiloran on February 6, 2006, 5:00 am
Please log in for more thread options



>
> >> I am creating file using the module and
> >> these files are sent to another server which uses Microsoft ADO
> >> Jet Drivers but is unable to open the files.
> >
> > Try the most recent version of the Spreadsheet::WriteExcel, 2.15, which
> > produces files in the Excel 97 format.
> >
> > This behaves better with ODBC, and hopefully with Jet as well.
> >
> > John.
>
> Thanks John...I did do this and it did the trick. I am now having an
issue
> with creating files with a large number of lines. I used to create files
> with 14000 lines, but it seems to be giving me problems now. This is the
> loop that creates the worksheets:
>
> # Process the output
> foreach my $flds (@report) {
> next unless $flds;
> for(my $i=0;$i<scalar(@$flds);$i++) {
> if (0==$row) {
> $sheet->write($row,$i,$flds->[$i],$heading);
> next;
> }
> $sheet->write($row,$i,$flds->[$i], $font_size);
> }
> $row++;
> }
>
> Can you see why this would work for a few rows but not for even 5000?
>
> Thanks
> Raj
>

Look at use Spreadsheet::WriteExcel::Big

http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.16/lib/Spreadsheet/WriteExcel/Big.pm

Regards,
Alan



Similar ThreadsPosted
ANNOUNCE: Spreadsheet::WriteExcel 2.04 August 19, 2004, 12:05 am
Query about Spreadsheet::WriteExcel September 10, 2004, 3:54 pm
ANNOUNCE: Spreadsheet::WriteExcel 2.10 September 24, 2004, 12:52 am
Spreadsheet::WriteExcel and Frames October 11, 2004, 1:08 pm
Spreadsheet::WriteExcel new($var) not working May 20, 2008, 6:10 am
Spreadsheet::WriteExcel format width May 20, 2005, 1:04 pm
WriteExcel internal hyperlink August 5, 2004, 8:31 am
WriteExcel->sheets() fails in getting worksheets May 5, 2008, 7:38 pm
WriteExcel module set_row and set_column to group by both January 20, 2005, 2:40 pm
ANN: Spreadsheet::Read 0.15 June 21, 2006, 12:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap