in reply to Re: Win32::OLE for Excel fails to open newly generated XLS file
in thread Win32::OLE for Excel fails to open newly generated XLS file
and it seemed to work but it still feels like doing voodoo.# get a new workbook my $wbook; $wbook = $excel->Workbooks->Open({ FileName => $fullname_input_fil +e }); $wbook->Save(); unless(defined $wbook) { if($wbook = Win32::OLE->GetObject($fullname_input_file)){;} else { $wbook = $excel->{Workbooks}->{"$fullname_input_file"}; if($wbook->Activate()){;} else { print STDERR "Could not open the file $fullname_input_ +file: $!\n"; exit; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::OLE for Excel fails to open newly generated XLS file
by Corion (Patriarch) on Jan 26, 2016 at 09:39 UTC |