Solved

Conditionally change font size

Posted on 2004-08-25
4
351 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

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
Crystal Report Error 14 72
Crystal Reports Subreport details 16 50
New and Previous Value in Crystal Report 8 53
Date Formula: Last business day - 2 of prior month 12 40
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. …
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 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

16 Experts available now in Live!

Get 1:1 Help Now