Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my $word = CreateObject OLE "Word.Application";
    $word -> {Visible} = 1;
    my $document = $word -> Documents -> Open("C:/file_to_open.doc");
    
  2. or download this
    my $text = $document -> {Content} -> {Text};