Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Win32::OLE qw(in with);
    ...
                   "Data THREE" ,
                   "Data FOUR");
    
  2. or download this
    $Word->Selection->TypeText ({ Text => "This is plain header text"});
    $MyRange->Collapse({Direction=>wdCollapseEnd});
    $Word->Selection->TypeText ({ Text => "\n\n" });   #add the table 2 li
    +nes below
    $Word->Selection->MoveDown({Count => 2});
    
  3. or download this
    my @headers = ("Header ONE",
                   "Header TWO",
    ...
    my $Doc= $Word->{ActiveDocument};
    $Doc->SaveAs('c:\perl\projects\testtable.doc');