Hi all. I have a long text field. If i want to show a certain word in RED when it finds it in this text field, is there a way to do this?
Thanks
Regina
A text field that you've inserted? Why not just format the color when inserting it?
Perhaps you mean a string type of field, a text field is a type of field within Crystal for typing text or inserting fields into.
You might accomplish this by parsing out the string into words before the word, the word, and then after the word, or you might use HTML formatting in some way as well.
Could even be that you could use a SQL Expression and embed HTML formatting within the field using a replace function.
Things like the version of your software and whether this is a typed text field or you mean a database field or a formula, etc., would be useful to know so that we don't waste time.
I am looking for the same solution. I have a text FIELD which I am pulling from my database. I would like to highlight specific words. I have struggled with this. Would there be a recommended formula which can be used?
Swap your memo field for {table.memofield}.
Swap the text you want to color for the 2 occurances of "Your Phrase Here".
Place the field on the report in place of the original field.
Right click the field, choose Format Field, and then under the Paragraph tab, change Text Interpretation to HTML Text
Brian's solution should be fine if you have CR 9 or above, again, you are being intentionally *vague* as you term it about sharing required information, even after specifics are requested.
If you have CR 8.5 or below, you'll need another solution.
One line posts invariably result in additional posts wherein we try to describe your environment and your requirements, please take the time to do so in future posts.
I'm sorry but I do not understand:
"Things like the version of your software and whether this is a typed text field or you mean a database field or a formula, etc., would be useful to know so that we don't waste time."
This is what you asked for and I answered all of that in my last post. CR10 and it is a DB field that is Memo Type. I'm not seeing what you are saying I am not giving you that you asked for. Sorry.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.