Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

by Nitrox (Chaplain)
on Feb 13, 2003 at 20:56 UTC ( #235108=note: print w/replies, xml ) Need Help??


in reply to Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI

Add some error reporting after interacting with the OLE object. It appears that $doc isn't being defined which would lead me to suspect that the OLE call is failing.

Update
To be more explicit, change line 19 to:

my $doc = $word->Documents->Open("$oldfile") or die("Couldn't open $ol +dfile");

-Nitrox

  • Comment on Re: Win32::OLE Word Search and Replace Script Runs Locally but not as part of CGI
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235108]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2023-03-24 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?