how can i change the colourindex of a word in a string for msword using Win32:OLE
- by lokesh
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.