jarlakhnet has asked for the wisdom of the Perl Monks concerning the following question:
If the above script is executed in the CGI Mode I found the error#!C:/Perl/bin/perl.exe use strict; sub Report{ use Win32::OLE; use Win32::OLE::Const 'Microsoft Excel'; $Win32::OLE::Warn = 3; # die on errors... my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); my $Book = $Excel->Workbooks->Add(); my $Sheet = $Book->Worksheets(1); $Sheet->Cells(1,1)->{'Value'}="Hello"; $Sheet->Cells(1,2)->{'Value'}="Excel Report"; $Book->SaveAs("c:\\tmp\\test_graph123.xls"); $Book->Close(); $Excel->Quit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Under CGI Mode Unable to access the Excel Application using Win32::OLE
by NerdMachine (Initiate) on Nov 09, 2005 at 05:30 UTC | |
|
Re: Under CGI Mode Unable to access the Excel Application using Win32::OLE
by SheridanCat (Pilgrim) on Nov 09, 2005 at 17:42 UTC |