in reply to Re^2: cygwin, make, perl, win32::ole (excel) problem
in thread cygwin, make, perl, win32::ole (excel) problem
My point was that the error tells you that the call $Excelbook->SaveAs is being made against an undefined value, hence $Excelbook is undefined after $Excelbook = $Excel->Workbooks->Open("$template_path.\\filereport.xls"); has executed, so if you changed it to read
instead, then, in all probability, you'd get a bit, tho' probably not much, more help from Windoze itself as to why the open failed.$Excelbook = $Excel->Workbooks->Open("$template_path.\\filereport.xls" +) || die "Cannot open - $template_path.\\filereport.xls" . Win32::OLE-> +LastError;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: cygwin, make, perl, win32::ole (excel) problem
by cugetare (Initiate) on Dec 03, 2008 at 15:09 UTC | |
by Corion (Patriarch) on Dec 03, 2008 at 15:19 UTC | |
by Bloodnok (Vicar) on Dec 03, 2008 at 15:38 UTC | |
by Bloodnok (Vicar) on Dec 03, 2008 at 16:07 UTC | |
by cugetare (Initiate) on Dec 04, 2008 at 07:31 UTC |