Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Convert word(.doc) file to html file

by Corion (Pope)
on Nov 26, 2003 at 11:12 UTC ( #310200=note: print w/ replies, xml ) Need Help??


in reply to Convert word(.doc) file to html file

Perl under Windows has the great capability of automating other programs through the Win32::OLE module. That way you can remotely control MS Word the same as with Visual Basic for Applications through the Office Object Model.

The easiest way to get a (Visual Basic) stub of what you want to do is:

  1. Practice what you want to do with the program manually
  2. Switch on the macro recorder
  3. Do what you want to automate one final time
  4. Stop the macro recorder
  5. Look at the recorded macros
  6. Convert the recorded Visual Basic macro to Perl

Conversion of the recorded Visual Basic macro to Perl is a fairly mechanical process, and what you need to know beyond that should be explained in the Win32::OLE documentation.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web


Comment on Re: Convert word(.doc) file to html file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-08-22 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (150 votes), past polls