• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Advanced Word Hacks > 86. Hack Word from Perl

Hack Word from Perl

Use Word from Perl to create attractive printouts of HTML documents on the fly.

This hack shows you how to use Perl to import an HTML document into Word, tweak the formatting, save the document in native Word format, and print it out to the default printer. This hack assumes you have a file named C:\resume.html on your system. It also assumes you have Perl installed on your system and can run Perl scripts from the DOS command line.

Tip

To download a free version of Perl for Windows, go to the ActiveState web site at http://www.activestate.com.

Because Perl supports COM automation [Hack #84] , you can access Word from within a Perl script using the Win32::OLE module, which the ActiveState Perl distribution includes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint