wal77 has asked for the wisdom of the Perl Monks concerning the following question:
We have a web application runnung on Windows Server 2003, Apache and MS Office 2003. Win32::Ole generates word documents initiated over a CGI form. All works pretty. Now I have to install a new server based on Windows Server 2008 R2 Standard with Office 2010.
Apache runs as priveleged user, but the script hangs on $word = Win32::OLE->new('Word.Application', sub {$_[0]->Quit;} till browser timeout message coming, no errors in perl($Win32::OLE::Warn = 3;), Apache or Windows. Seems to be Word waiting for a confirmation, but I can't see it ({visible} = 1).
use Win32::OLE; $Win32::OLE::Warn = 3; eval {$word = Win32::OLE->GetActiveObject('Word.Application')}; die "Word not installed" if $@; unless (defined $word) { $word = Win32::OLE->new('Word.Application', sub {$_[0]->Quit;}) or die "Oops, cannot start Word"; } $word->Activate; $word->{visible} = 1; my $doc = $word->Documents->Open("$oldfile"); ....... $word->ActiveDocument->SaveAs($newfile); $doc->Close(); $word -> Quit;
Can you halp me? Regards, wal77
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: win32::ole and MS Office 2010 over cgi
by afoken (Chancellor) on Feb 04, 2012 at 19:10 UTC | |
by wal77 (Novice) on Feb 04, 2012 at 21:06 UTC | |
by furry_marmot (Pilgrim) on Feb 05, 2012 at 06:36 UTC | |
by wal77 (Novice) on Feb 05, 2012 at 09:54 UTC | |
by afoken (Chancellor) on Feb 05, 2012 at 12:54 UTC | |
| |
by Anonymous Monk on Feb 05, 2012 at 06:25 UTC | |
Re: win32::ole and MS Office 2010 over cgi
by Anonymous Monk on Feb 04, 2012 at 16:00 UTC | |
by wal77 (Novice) on Feb 04, 2012 at 16:49 UTC | |
Re: win32::ole and MS Office 2010 over cgi
by kenearle (Novice) on Mar 18, 2012 at 15:15 UTC |