how can i change the colourindex of a word in a string for msword using Win32:OLE

Posted by lokesh on Stack Overflow See other posts from Stack Overflow or by lokesh
Published on 2010-03-17T03:54:06Z Indexed on 2010/03/17 4:01 UTC
Read the original article Hit count: 356

Filed under:

hi all, i am actually trying to change the color index for the first word with braces in an array, for eg if i have an array like this...

@array="
        (Love) is (beautiful),
         Its like an (air),
         So it can be (only) felt,
        (Cannot) be (seen)."

and i need the colour of the first word that are inside the braces () ie "(Love), (Cannot)" including () to be in RED and rest of the contents in BLACK and print the entire contents of the array in msword(2003) using win32::ole....and am using windows xp.This array is just an example the contents of an array will change but first word with braces has to be printed in red can any one help me pls... its very urgent...Thanks a lot to all who help me in this regard.

© Stack Overflow or respective owner

Related posts about perl