Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
this code correctly opens up excel but unfortunately freezes and never refreshes the screen to display the file. what more do I need? thanks, Michaeluse strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; use Win32::OLE::Variant; use Win32::OLE::NLS qw(:LOCALE :DATE); $Win32::OLE::Warn = 3; my $excelfile = $ARGV[0]; my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); $Excel->{'Visible'} = 1; $Excel->{DisplayAlerts} = 0; my $Book = $Excel->Workbooks->Add(); my $Book = $Excel->Workbooks->Open($excelfile); while(1){}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Excel and OLE
by jsprat (Curate) on Sep 18, 2002 at 20:06 UTC | |
by Silicon Cactus (Scribe) on Sep 18, 2002 at 21:00 UTC | |
by jsprat (Curate) on Sep 19, 2002 at 01:51 UTC | |
|
Re: Excel and OLE
by Solo (Deacon) on Sep 18, 2002 at 21:13 UTC | |
by Solo (Deacon) on Sep 18, 2002 at 21:23 UTC |