Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 musing on the Monastery: (5)
As of 2015-07-05 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls