Thread

Posted on Fri Jan 26 16:38:24 2007 by nickeng
Problem running demo
Hi, i'm very new of Perl, so forgive if the question is stupid. I tried to compile a simple program and i get:
Base class package "Spreadsheet::ParseExcel::Workbook" is empty. (Perhaps you need to 'use' the module which defines that package first.) at Spreadsheet/Par +seExcel/SaveParser.pm line 14 BEGIN failed--compilation aborted at Spreadsheet/ParseExcel/SaveParser.pm line 14. Compilation failed in require at ./conv.pl line 18. BEGIN failed--compilation aborted at ./conv.pl line 18.
The program starts like:
use strict; use Spreadsheet::WriteExcel; use Spreadsheet::ParseExcel::SaveParser;
I can't see what's going wrong.. But there is no Workbook.pm inside Spreadsheet/ParceExcel.. is it normal? Thanks
Direct Responses: 4169 | Write a response
Posted on Fri Jan 26 17:38:05 2007 by jmcnamara in response to 4164
Re: Problem running demo

Hi,

This is a bug. You should inform the maintainer that the "use base" statement in SaveParser doesn't work.

In the meantime you can install a older version such as 0.2603.

John.
--
Direct Responses: 8362 | Write a response
Posted on Sat Jul 19 12:25:35 2008 by runjun in response to 4169
Re: Problem running demo
#!usr/bin/perl-w use strict; use Spreadsheet::ParseExcel; use Spreadsheet::ParseExcel::SaveParser; my $oBook = Spreadsheet::ParseExcel::SaveParser::Workbook->Parse('Excel/Test97.xls'); my $oWs = $oBook->AddWorksheet('TEST1'); $oWs->AddCell(10, 1, 'New Cell'); $oBook->SaveAs('iftest.xls');
It will now work with original version also
Write a response