Dynamically underline a text box Crystal Xl

I am dynamically changing the text that appears in my report column headers and the column detail, contingent upon a user's selection.  I would like modify my current formula that creates these headers to underline the header . Can this be done?

Formula looks something like this.
'Date' + CHR(10) 'Started'  which produces the following result:  I would like to underlind Started.

Date
Started


cookiejarAsked:
Who is Participating?
 
wykabryanCommented:
yes this can be done. But there are other ways as well. For this example do the following.

Change your formula to this..
'Date<br><u>Started</u>'

Add the formula to the report. Right click on the formula. Go to format field. Go to the paragraph tab. In the low section there is a option called Text interpretation. In the drop down change it to HTML text. Click OK.  You will need to resize the field a bit to see everything but this should do it.  Crystal has the ability to read HTML code. The <br> is a line break and the <u></u> is for underline.
0
 
dan_nealCommented:
You may be looking for the wrong thing.  Look for defining the bottom border of the text box and not formatting the text.
0
 
GSQLCommented:
Agreed.  

To do so, right click on the text object, go to Format editor by selecting Format text, click on the formula edit button to the right of "Bottom:" then create a fomula whose result is crSingleLine or crNoLine.  For example

if <<UserSelection>> = <your criterion here> then
crSingleLine else
crNoLine;

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.