Bloodelf has asked for the wisdom of the Perl Monks concerning the following question:
I am working on a script which needs to open a word (.doc) document, select all the text and then put the selected text into a variable. I can select the text, but have been unsuccessful in putting it into the variable. Here is what I have so far
use Win32::OLE; my $Word = Win32::OLE->new('Word.Application', 'Quit'); $Word->Documents->Open("C:/test/test.doc"); $Word->Selection->WholeStory;
Any ideas....?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Word and Win32::OLE
by cacharbe (Curate) on Sep 20, 2001 at 22:03 UTC | |
Re: Word and Win32::OLE
by CubicSpline (Friar) on Sep 20, 2001 at 21:56 UTC | |
by CubicSpline (Friar) on Sep 20, 2001 at 22:06 UTC | |
Re: Word and Win32::OLE (retrieving text from a word document)
by Foggy Bottoms (Monk) on Jun 16, 2003 at 15:55 UTC |
Back to
Seekers of Perl Wisdom