Roland writes..
>Does anyone konw a perl module that will let me just read the
>text content of a MS Word 97 document?
Win32::OLE, here's some code that will print out the content from a word
document:
use strict;
use warnings;
use Win32::OLE;
my $app = Win32::OLE->CreateObject('Word.Application');
$app->{Visible} = 1;
my $doc = $app->{Documents}->Open('/path/to/word.doc');
print $doc->{Content}->{Text}, "\n";
__END__
For more information on how to turn this into a proper program, you
should take a closer look at the OLE documentation for Word, if you have
Word installed locally then you can get this in the VBA doco; in Word
hit Alt+F11 to open the VBA editor, then hit F1 to bring up the help. In
the Index tab look up the Application Object, everything stems from
there. If you don't have word installed, then you can get the same
information but not as well laid out, on
http://msdn.microsoft.com/office/
Also, you can get full information about the objects and constant values
and things like that from the OLE Browser which ships as part of
ActivePerl for Win32 platforms, check your ActivePerl program group on
your Start menu.
--
Jason King
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs