Word document Font: size, small caps, animation : Word « Win32 « Perl






Word document Font: size, small caps, animation

  

#!/usr/bin/perl

use warnings;
use strict;
use Win32::OLE;

chomp( my $line = <STDIN> );

my $word = new Win32::OLE( "Word.Application" )
   or die( "Error opening a document in Word: $!" );

$word->{ Visible } = 1;
$word->Documents->Add();
$word->Selection->Font->{ Size } = 100;
$word->Selection->Font->{ SmallCaps } = 1;
$word->Selection->Font->{ Animation } = 3;   # sparkle text 
$word->Selection->TypeText( $line );

   
    
  








Related examples in the same category

1.Reading in a Word document by using the Win32::OLE::GetObject routine and then printing the document