Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bold Text in Formula 2

Status
Not open for further replies.

ruan123

Programmer
Jul 23, 2004
23
ZA
Hi

Is it possible to bold or underline some text in a formula, using Crystal 10?
 
The only way to do this through one formula is to change the formula to be html text, and then have the formula interpret it as HTML:

Formula code would look like this:

"<html>Is it possible to <b>bold</b> or <u>underline</u> some text in a formula, using Crystal 10?</html>"

Now when you place the formula on the report, right click it, choose Format Field, and then under Paragraph tab, change the Text Interpretation to HTML Text.

~Brian
 
Thank you very much, I never knew that you can use html in a formula, but how do you bold for example this,

"Such notice can only be given as from "+{RENTALS.NOTICE_DATE}+" , which is after the first initial (4) (10) months of the Agreement." - where {RENTALS.NOTICE_DATE} must be bold and is an database field.
 
Hi,
Try:

"Such notice can only be given as from <b>"+"+{RENTALS.NOTICE_DATE}+"</b> , which is after the first initial (4) (10) months of the Agreement."



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,
OOPS, I left an extra " in that code , and assumed that the Date was a string..:

Should have been:
Code:
"Such notice can only be given as from <b>"+ToText({RENTALS.NOTICE_DATE},'MM/dd/yyyy')+"</b> , which is after the first initial (4) (10) months of the Agreement."

Sorry 'bout that..


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanx a lot, saw the ". What is the difference between the ToText and the Cstr functions, I am using Cstr like this -

"Such notice can only be given as from <b>"+Cstr({RENTALS.NOTICE_DATE})+"</b> , which is after the first initial (4) (10) months of the Agreement."



 
They are interchangeable and do the same thing.
As Turkbear demonstrated, it allows you to control the format of the date when converting it.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top