lepetitalbert has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear Monks,
I have this code :
output :my $Excel = Win32::OLE->new('Excel.Application') or die "Could not sta +rt excel"; $Excel->{'Visible'} = 0; $Excel->{DisplayAlerts} = 0; my $file = "E:/www/aglocal/Inlook/excel/facture.xls"; if ( -e $file ) { print h1( 'found' ); } else { print h1( 'NOT found' ); } if ( -r $file ) { print h1( 'readable' ); } else { print h1( 'NOT readable' ); } if ( -w $file ) { print h1( 'writable' ); } else { print h1( 'NOT writable' ); } my $Book = $Excel->Workbooks->Open ( "$file" ) or die "$! : $file\n"; # open Excel file
This code works on the server I used until now, but not on a win32 apache 2.2.8found readable writable Software error: Bad file descriptor : E:/www/aglocal/Inlook/excel/facture.xls
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem using Win32::OLE on apache
by Errto (Vicar) on Feb 04, 2008 at 16:08 UTC | |
by lepetitalbert (Abbot) on Feb 04, 2008 at 17:17 UTC | |
by lepetitalbert (Abbot) on Feb 08, 2008 at 08:08 UTC |