Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Mailing Labels Problem Post Reply Post New Topic
Author Message
Noahg
Newbie
Newbie


Joined: 03 Jun 2010
Online Status: Offline
Posts: 1
Quote Noahg Replybullet Topic: Mailing Labels Problem
     Posted: 03 Jun 2010 at 10:57am
I have a cr designed to generate mailing labels. The report works great until one of the fields grows to the right and screws up the rest of the labels on the page.
 
Is there a way to limit the results of the filed for the problem string? I have tried a few functions and for the life of me I can not figure out the syntax. Perhaps there is some sort fo logic that would shrink the size of the field based on how many characters are in the string.
 
Thanks in advance for any help!
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 04 Jun 2010 at 6:08am
You can limit the size of the field by creating a formula and using the left function (i.e., left({stringfield}, #of characters desired)).  If you have any null strings, then you will need to check for the null first.
 
If not(isnull({stringfield})) then  left({stringfield}, #of characters desired)
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