Koen_V has asked for the wisdom of the Perl Monks concerning the following question:

I read through the various topics about CGI and OLE but I still have some problems with this in my script. I want to open a new instance of word and add a new document

my $word = Win32::OLE->new(["$IPAddress", 'Word.Application']) or $error = "$error Can't start Word"; $word->{'Visible'} = 1; my $doc =$word->Documents->Add or $error ="$error Can't Add";
This script works fine from the command prompt but nothing happens when I run it as part of a cgi script. I get no value in $error however so I assume that my acces and launch rights are not the problem. $IPAddress contains my PC's IP so this is probably not the problem either.

I use Win2000, ActivePerl 5.8 and Apache 2.

Edited by Chady -- added code tags.

Replies are listed 'Best First'.
Re: CGI and OLE
by gellyfish (Monsignor) on Mar 04, 2005 at 16:32 UTC