fishpoem has asked for the wisdom of the Perl Monks concerning the following question:
Question: how do I go to the END of a Word doc before CLOSE?
The code below simply appends one document to another. I would like to go to the very end of the destination document AFTER the text has been appended but BEFORE closing the destination document.
$Word->Documents->open( $source_doc ) or die "Unable to open $source_doc ", Win32::OLE->LastError(); my $text = $Word->ActiveDocument->Content->Text; $Word->ActiveDocument->Close; $Word->Documents->open( $dest_doc ) or die "Unable to open $dest_doc ", Win32::OLE->LastError(); $Word->ActiveDocument->Content->InsertAfter({ Text => $text }); $Word->ActiveDocument->Close;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How To goto End of Word doc
by poj (Abbot) on Feb 02, 2017 at 07:37 UTC | |
by pryrt (Abbot) on Feb 02, 2017 at 14:59 UTC | |
by fishpoem (Initiate) on Feb 02, 2017 at 17:51 UTC | |
by fishpoem (Initiate) on Feb 02, 2017 at 17:44 UTC | |
Re: How To goto End of Word doc
by GotToBTru (Prior) on Feb 02, 2017 at 06:42 UTC | |
by fishpoem (Initiate) on Feb 02, 2017 at 17:41 UTC | |
by GotToBTru (Prior) on Feb 03, 2017 at 04:31 UTC | |
Re: How To goto End of Word doc
by Anonymous Monk on Feb 02, 2017 at 07:27 UTC |
Back to
Seekers of Perl Wisdom