Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?

by sflitman (Hermit)
on Sep 23, 2010 at 05:06 UTC ( #861445=note: print w/ replies, xml ) Need Help??


in reply to How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?

I think you shouldn't call TypeText since that is what is adding the original paragraph. The Selection is probably the paragraph at that point, which is why the whole line gets bold. Set the selection using $Word->MoveRight (check the API, I believe you can select a word at a time with this method, at least when called from Visual Basic).

HTH,
SSF


Comment on Re: How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-07-22 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (113 votes), past polls