Categories > OpenTBS with DOCX >

Change colour of text

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: andre
Date: 2011-08-09
Time: 05:51

Change colour of text

How do I change the Color of text in a word document, I have done the following but it doe not work:

[onshow.BusName; w:color w:value="990000"]
By: Skrol29
Date: 2011-08-10
Time: 10:52

Re: Change colour of text

Hi,

The color of text is often defined in an <w:color> element such as:
<w:color w:val="FF0000"/>
You can change the color code using the "att" parameter. For example:
<w:color w:val="FF0000"/>... [onshow.BusName][onshow.ColorCode;att=w:color#w:value]...
By: andre
Date: 2011-08-12
Time: 09:00

Re: Change colour of text

Thank you Skrol29; But its still not working for me??

I have done this:

[onshow.BusName;att=w:color#w:value=990000] ALSO TRIED: [onshow.BusName;att=w:color#w:value="990000"]
ALSO TRIED: [onshow.BusName;att=w:color#w:value=990000] ALSO TRIED [onshow.BusName[onshow.ColorCode;att=w:color#w:value=990000]

None worked :(

Any ideas?
By: Skrol29
Date: 2011-08-13
Time: 01:05

Re: Change colour of text

Hi,
The "att" parameter does not work this way. It designates the target attribute, and the value to be merged then becomes the target attribute's value.
See the manual and examples for more details.