Solved

Conditionally change font size

Posted on 2004-08-25
4
348 Views
Last Modified: 2013-12-03
Using Crystal Reports 9.0 I would like to conditionally change a font size. Is something like this possible?
if len({customers.customername}) > 50 then
fontsize = 16
else fontsize = 14
0
Comment
Question by:TommyTupa
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 11897301
Try this
Open the report
Select the field
Click FORMAT --> FORMAT FIELD
Select the FONT Tab
Click the FORMULA button next to either font or size (don't have CR here)
if (len({customers.customername}) > 50 then
16
else
14


if you don't see formula buttons then it may not be possible.

mlmcc
0
 
LVL 13

Author Comment

by:TommyTupa
ID: 11897891
Wow that was easy.  Thanks.
0
 
LVL 1

Expert Comment

by:slimcutter2k
ID: 11897922
Hello, I have used Crystal reports and I am waiting for It to be Installed on my computer right now. Seeing that I don't have this application in front of me at the moment I can give you one basic option but their prob is a much faster ways to do it

1. you can create a field that has the value of len([customers.customername]) stored in it lets say you called it cuslegth.
Than you could simply goto the format menu or what ever menu houses the conditional forrmating menu
and select if cuslegth > 50 than font size = 16

you shoulded have to write any IF statements there should be a bulit in menu called conditional Formatting

I'm sorry I can't tell you exscally where this is but I can give you an exsample.
If your data was in excel you would create a formula like F2 = len(E2"the cell that contains the customername")
In Microsoft Excel goto format than conditional Formatting
ENTER AS FOLLOWS
IF CELL VALUE IS GREATER THAN 50
CLICK FORMAT BUTTON
SELECT FONT SIZE "16"
PRESS ENTER

Crystal reports should have the same fuctionality
P.S. sorry for the All Caps end of day I hit it by mistake and I got lazy
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 11898656
Glad I could help

mlmcc
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 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

18 Experts available now in Live!

Get 1:1 Help Now