tags:

views:

202

answers:

1

i stored the RTF file format in my ASA database.

How to select the content by using the color or Font name, Alignment. for ex:

i have a content it has 100 lines with formatted text in between it contains the text which is in blue color, i need to select dynamically by giving the color "blue"

is it possible?

A: 

In RTF, you have a colour table at the top which defines all the colours used.

With only blue defined, it will look something like this:

{\colortbl ;\red0\green0\blue255;}

Then in the actual text, you have \cf1 to change to the first defined colour, and \cf0 to change back to black, like this:

some black text\par
\cf1 this is blue text\cf0\par
more black text\par

(\par means paragraph)

Colin Pickard