Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://861445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-23 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found