in reply to Snarfing data from microsoft word
On Win32, you may want to consider:
OK, so this yelds all the text of the document. If the text is inside text boxes (for instance) it will not be in $text.use Win32::OLE; my $word=Win32::OLE->new('word.application'); my $doc=$word->Documents->Open('C:\foo\bar.doc'); my $text=$doc->{Text}; # $text=~s/\r/\n/g;
will be your friend...perl -MWin32::OLE -d -e 42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Snarfing data from microsoft word
by McD (Chaplain) on Sep 18, 2002 at 17:36 UTC |