Your skill will accomplish what the force of many cannot |
|
PerlMonks |
win32::ole and wordby brownsofa (Initiate) |
on Jun 06, 2004 at 21:04 UTC ( [id://361808]=perlquestion: print w/replies, xml ) | Need Help?? |
brownsofa has asked for the wisdom of the Perl Monks concerning the following question:
Hello there, I am a bit new to Perl and set out to write my first Perl code using the Win32::OLE. I RTFM and went through the forums here. Seeing as I want to get off on the right foot to save myself pain later I noticed that code that I found lying on the floor of the Internet worked but some other code I found here (http://perlmonks.thepen.com/198045.html) that resembled the MSDN way (within this MSDN link) did not. The method in question is the "typetext" way of inserting text. Here is my code:
The resulting word document looks like this: Insert After method All other text is missing. The "typetext" way does not work with my code (I did try to "selection() my document), but does with the code I found here and to be what microsoft is pushing. I am using ActiveState Perl 5.6 and not the CSPAN. Can anyone show and then push me down the right fork in this road? Many thanks. brownsofa janitored by ybiC: Balanced <code> tags around codeblock, PM-ified links thusly - [http://foo.bar/bat/baz.html]
Back to
Seekers of Perl Wisdom
|
|