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






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

  

#!/usr/bin/perl -w

use Win32::OLE;

$filename = 'wordFile.doc';

$doc = Win32::OLE->GetObject( $filename ) 
    or die "Cannot load file $filename from Word, $!";

# Print document.
$doc->PrintOut();

   
    
  








Related examples in the same category

1.Word document Font: size, small caps, animation