How to write a formula to change a font based upon data ?

Answers were Sorted based on User's Feedback



How to write a formula to change a font based upon data ?..

Answer / mlmcc

Select the field
Click FORMAT
Click FORMAT FIELD
Select the FONT tab
Click the FORMULA BUTTON to the right of FONT
if ({YourField} = Value) then
"Arial"
else
"Times New Roman"

Click SAVE Icon
Close the formula editor
Click OK on the FORMAT screen

Is This Answer Correct ?    21 Yes 9 No

How to write a formula to change a font based upon data ?..

Answer / parvathi

hi.........
its really good.
thanks for this code.
i resolved my bug depends on this...

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Crystal Reports Interview Questions

What are the sections that we have in Crystal reports?

11 Answers  


Can we export data of reports into other format like in world doc etc?

5 Answers  


Reports can be optimized for web viewing using which of the following strategies: a. Using subreports instead of linking tables b. Avoiding maps c. Using the Page N of M special field to help users understand how many pages are in the report d. Saving reports as version 10 e. Avoiding reports with drill-down capabilities

2 Answers  


hi... i've two crystal reports one is in D: drive name employee.rpt with 5 textobject and another report is in E: drive name employee.rpt with 15 textobject... now i want to write a program to overwrite the D drives report with E drives reports i.e i want to replace the 5 textobject with 15 textobject.. overwriting the reports while it is executing .. is there any code for it please help me.. its urgent..

0 Answers  


I have a crystal report with a linked subreport as well. is there any way not to print the current record on the main report if no records are returned from the subreport? thanks you email - stanlte@yahoo.com

3 Answers  


how to create crystal reports in .net

2 Answers   CTS,


hi.. i've created a crystal report and one crystal report viewer in windows form. i've two form form1 and form2 in form2 i've kept one button called print. when i press this button it should print the document into .pdf format. without using the crystal report viewers print button.

0 Answers  


Can we use stored procedure for creating the report?

11 Answers   Medreich,


If we create reports in Crystal Reports using the UCAR Data Warehouse database, which tables should be used?

0 Answers   IBM,


I had an Interview yesterday for a Crystal Reports Developer position. Some of these I have not done in my reporting experience and I had just a half day's notice for the interview, hence no prep time :-( 1) Is there a way to be able to change an image(company logo) dynamically in a report? Example if you have 100 reports, and with the market uncertainity if you anticipate that the company logo might change, how can you change the image just in one place and have this reflected in all teh reports at run time? 2) What is a SQL expression? 3) What are field expressions and what are the diff types? (I looked this up in the internet and never found anything with regards to types of field expressions) The interviewer really got me confused as I felt he was not clearly setting forth his questions but it could be that I was unable to understand his wording of the questions. I expect a big zero from his feedback but I am hoping this is an experience for future interviews that I face in crystal reports when I do get some more lined up. Thanks in advance! Anita New Jersey, USA.

5 Answers   Barclays,


Is there a way to export a report definition without writing code?

2 Answers  


Can anyone help me with an answer to this question? Where is the image located, after you've placed it on the report?

2 Answers  


Categories