John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Huh?
The last line works (as do others not shown) so I clearly have a Document object at this point. What's wrong with the method call GoTo?
And if that line didn't work, why don't the next two cause errors as well?
my $Doc= Win32::OLE->GetObject ($filename, 'Close' ); my $range= $Doc->GoTo ($wd->{wdGoToBookmark}, { Name => 'Functionalit +yMatrix' }); $range->InsertParagraphBefore(); $range->InsertBefore ('Hello world!'); print "** $Doc $Doc->{FullName}\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Win32::OLE strange error message
by tye (Sage) on Jul 27, 2001 at 23:43 UTC | |
by John M. Dlugosz (Monsignor) on Jul 28, 2001 at 00:21 UTC |