Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Crystal Report Font Size Post Reply Post New Topic
Author Message
vbCodou
Newbie
Newbie
Avatar

Joined: 26 Mar 2009
Location: Japan
Online Status: Offline
Posts: 5
Quote vbCodou Replybullet Topic: Crystal Report Font Size
     Posted: 20 Nov 2009 at 10:47pm

I know how to use formula in font size in font tab. my problem is
how can I set the font size field using this kind of scenario:

{WorkTable.CmpName} as Label1
→ if len({WorkTable.CmpName}) > 18 then 10 else 14
{WorkTable.SignName} as Label2
→ if len({WorkTable.SignName}) > 18 then 10 else 14

Above code will work properly.

Below code i dont know where to put. please help me
 
If len({WorkTable.SignName}) > len({WorkTable.CmpName}) then
Font size of Label2 = Font size of Label1

Else
 Font size of Label2 = Font size of Label2

 

 
 
 
 
 
isho ni tabemasu ka
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Nov 2009 at 3:47pm
replace "if len({WorkTable.SignName}) > 18 then 10 else 14" with ...
 
If len({WorkTable.SignName}) > len({WorkTable.CmpName}) then
(if len({WorkTable.CmpName}) > 18 then 10 else 14) else
(if len({WorkTable.SignName}) > 18 then 10 else 14)


Edited by DBlank - 21 Nov 2009 at 3:49pm
IP IP Logged
vbCodou
Newbie
Newbie
Avatar

Joined: 26 Mar 2009
Location: Japan
Online Status: Offline
Posts: 5
Quote vbCodou Replybullet Posted: 23 Nov 2009 at 6:58pm
thank you.
isho ni tabemasu ka
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum