Solved

Conditionally change font size

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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