brownsofa has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Win32::OLE; use Win32::OLE::Const 'Microsoft word'; my $word = Win32::OLE->new('word.Application', ''); $word->{'Visible'} = 1; my $wordtarget = $word->Documents->add() || die("Unable to open document ", Win32::OLE->LastError()); my $range = $wordtarget->{Content}; $range->InsertAfter("InsertAfter method"); $wordtarget->TypeText("typetext method"); $range->TypeText("typetext method");
janitored by ybiC: Balanced <code> tags around codeblock, PM-ified links thusly - [http://foo.bar/bat/baz.html]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::ole and word
by WhiteBird (Hermit) on Jun 07, 2004 at 04:14 UTC |