Click here to get back home

WriteExcel->sheets() fails in getting worksheets

 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
WriteExcel->sheets() fails in getting worksheets Anand 05-05-2008
Posted by Anand on May 5, 2008, 7:38 pm
Please log in for more thread options
I am trying to read an excel file usign the writeexcel. Following is
the code-snippet:
my $workbook = Spreadsheet::WriteExcel->new('Temp.xls');

print "Cannot create Temp.xls: $!\n" if (not defined $workbook);

foreach $worksheet ($workbook->sheets()) {
print "Worksheet Name is: ".$worksheet->get_name()."\n";
}

The file Temp.xls is already existing in the directory. There are four
distinct worksheets in the workbook. I want to further modify the
worksheets. However, the sheets() method itself is not working.
What might be the reason? I'm using perl 5.8

Thanks,
Anand.

Posted by Jim Gibson on May 5, 2008, 8:04 pm
Please log in for more thread options
In article

> I am trying to read an excel file usign the writeexcel. Following is
> the code-snippet:

You asked the same question two minutes ago in comp.lang.perl.misc.
Please do not post the same question independently to more than one
newsgroup. If you must, cross-post your question to multiple
newsgroups, but do it simultaneously. If you can't figure out how to do
that using Google Groups, find a decent news reader and provider.

Thanks.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
http://www.usenet.com

Similar ThreadsPosted
Net-DHCPClient; example fails; tap.al January 26, 2005, 10:07 pm
test fails May 10, 2008, 1:17 pm
Archive::Tar fails tests on AIX August 17, 2004, 6:30 pm
Perl/Tk build fails on HP-UX February 27, 2006, 4:58 pm
make test fails for XML::PARSER August 25, 2005, 11:48 am
System call fails in webserver February 11, 2006, 11:04 am
fails to parse the soap request April 28, 2006, 7:35 pm
Config::Any fails tests on install February 24, 2007, 2:49 pm
DBD::ODBC make test fails in HPUX11.11 July 21, 2004, 5:58 am
Term-Size make fails on debian September 6, 2005, 4:28 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap