Solved

How to Bold a formula within another formula

Posted on 2016-10-31
4
24 Views
Last Modified: 2016-10-31
How can I bold {@DisplayPersonQualifier} results within another formula.

Formula: DisplayPersonwithQualifier

{@DisplayPersonQualifier} & ' - ' & {@DisplayPerson}
0
Comment
Question by:MikeM670
  • 2
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 41867423
Without resorting to HTML or RTF coding, it is not possible.

That said there is a way to do it

Add a text box to the report
Drag  the {@DisplayPersonQualifier} formula into the textbox
Type the "  -  " in the text box
Drag the {@DisplayPerson} formula into the textbox

Right click the textbox
Click FORMAT TEXT
You can now format each individual part of the text box independently so the first part can be bold

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867647
Hi mlmcc,

I was hoping for a more elegant solution but maybe I should of asked this instead.  Below is the
DisplayPersonQualifier formula's code.  Would it be possible to do the "Bolding" within this formula before it is called by the DisplayPersonwithQualifier?  I have tried various approaches but nothing would work.



local stringvar Qualifier1;
local stringvar Qualifier2;
local stringvar Qualifier3;

if not(isnull({CasePerson.Qualifier1})) and trim({CasePerson.Qualifier1}) <> ""
then Qualifier1 := ProperCase ({CasePerson.Qualifier1});

if not(isnull({CasePerson.Qualifier2})) and trim({CasePerson.Qualifier2}) <> ""
then Qualifier2 := ', ' & ProperCase({CasePerson.Qualifier2});

if not(isnull({CasePerson.Given3})) and trim({CasePerson.Given3}) <> ""
then Qualifier3 := ', ' & ProperCase({CasePerson.Given3});

Qualifier1 & '' &  Qualifier2 & '' & Qualifier3;
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41867657
The only way would be to use HTML encoding

Not sure which part you want bold

Change last line to

'<b>' & Qualifier1 & '</b>' &  Qualifier2 & '' & Qualifier3;

Right click the object on the report
Click FORMAT FIELD
On the PARAGRAPH tab
Set TEXT INTERPRETATION to HTML

mlmcc
0
 

Author Comment

by:MikeM670
ID: 41867672
Once again you provided the solution and I've learned a new feature using HTML!!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now