Solved

Bold string in a formula field

Posted on 2014-11-07
2
239 Views
Last Modified: 2014-11-13
How do I go about bolding part of a formula field that is a string?  
My formula is as follows and I want to bold the string: *DTC*

if {receiver.r_ussname} startswith "DTC" then
    {receiver.r_letter}& " *DTC*"
Else
    {receiver.r_letter}


Thanks!
0
Comment
Question by:IO_Dork
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40429197
I can think of 2 ways to do this.

1.  Add a text box to the report where you want to display
     Drag the {receiver.r_letter} field into the box
     Change your formula to
if {receiver.r_ussname} startswith "DTC" then
     " *DTC*"
 Else
    ""

Open in new window

   Drag the new formula into the text box
    Right click the text box
    Click EDIT
    Select the formula field
    Set it BOLD through the ribbon

2.  Use your formula but add HTML or RTF encoding to it
if {receiver.r_ussname} startswith "DTC" then
     {receiver.r_letter}& " <b>*DTC*>/b>"
 Else
     {receiver.r_letter}

Open in new window

Put it on the report
Right click it
Click FORMAT FIELD
Click the COMMON TAB
Set the interpretation to HTML

mlmcc
0
 

Author Closing Comment

by:IO_Dork
ID: 40441191
thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question