Solved

Changing Fonts (CR 8.5)

Posted on 2006-07-19
14
470 Views
Last Modified: 2013-12-03
I am trying to display a "Wingding" when a certain value is returned, else display the default font.

In my formula for "Font", I have the following code:

--------------------------------------
if CurrentFieldValue = "1" then
    "Wingdings"
else
    DefaultAttribute
--------------------------------------

But the font doesn't change (ie "1" is displayed instead of an "open folder").  Is there something more I need besides just returning the string "Wingdings"?

(Yes, I have Wingdings font installed on my computer)

TIA
0
Comment
Question by:Clif
  • 5
  • 3
  • 2
  • +2
14 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 17143002
I tried it in CR8 and it didn't seem to work.  Your formula seems correct.

mlmcc
0
 
LVL 17

Expert Comment

by:MIKE
ID: 17143319
Your formula works fine in Crystal Reports XI version......

MikeV
0
 
LVL 17

Expert Comment

by:MIKE
ID: 17143326
You may have WINGDINGS font installed but is it in the correct directory?  Can you change the font to WINGDINGS...without a formula...that is to say...MANUALLY?

right click on the field and change the font to WINGDINGS..Let me know..

MikeV
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17143353
I think it may be a limitation of CR 8

mlmcc
0
 
LVL 10

Author Comment

by:Clif
ID: 17145419
CRXIuser2005,
Yes, I can manually change the font to Windings.
0
 
LVL 10

Author Comment

by:Clif
ID: 17145459
Ok, it looks like it will work going the other way.

In other words, if I make the field's font "Wingdings" and use the following code it works:

--------------------------------------
if Trim (CurrentFieldValue) <> "1" then
    "Arial (Western)"
else
    DefaultAttribute
--------------------------------------

Not sure if this warrants awarding a grade, though...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Author Comment

by:Clif
ID: 17145528
I was looking at my most recent code and the list of fonts that Crystal provides and noticed that there are two entries for Wingdings:

"Wingdings"
and
"Wingdings (Symbol)"

I put my code back, but changed "Wingdings" to "Wingdings (Symbol)" and it now works.

--------------------------------------
if CurrentFieldValue = "1" then
    "Wingdings (Symbol)"
else
    DefaultAttribute
--------------------------------------

How annoying is that?
0
 
LVL 10

Author Comment

by:Clif
ID: 17153212
mlmcc,
Who would I award the points to?  No one actually gave an answer that worked.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17158631
In that case I can close this and refund the points.

MikeV - Any objections?

mlmcc
0
 

Expert Comment

by:brainsprocket
ID: 17158916
Ah clif, it's not always knowing right answers, but asking the right questions...

brainsprocket
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17470225
PAQed with points refunded (125)

DarthMod
Community Support Moderator
0
 
LVL 10

Author Comment

by:Clif
ID: 17470249
Thanks.  :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IF THEN Statement not working 3 39
Font: I need Lato on my Mac 10 187
Google Chrome color inconsistency 2 56
Crystal Reports 13 5 45
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. …
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 …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

867 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

23 Experts available now in Live!

Get 1:1 Help Now