cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Field length

Former Member
0 Kudos

Hi All,

i have some entries in database fields that are short but also there are fields with at least 50 characters. Now if i set the size for the long ones it does not look good for the short ones.

Is there a chance to have a dynamic field length for crystal reports? So that for short fields its short and for long the opposite. The fields should just fit with the length of the entry shown.

Thanks a lot

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Tobias,

You have two options:

1) Set the field's width equal to the shortest size and turn on 'Can Grow'

Or

2) Set the field's width equal to the longest size > Right-click the field > Format field > Border > Check 'Tight Horizontal'.

The other wokaround involves using a conditional width formula under 'size and position' however, the results won't be uniform without a fixed width font.

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

is there a chance to get it grown horizontal without getting to the next line with "Can Grow" Option?

Kind regards

abhilash_kumar
Active Contributor
0 Kudos

There isn't, unfortunately.

-Abhilash

Answers (1)

Answers (1)

former_member226669
Participant
0 Kudos

Hi Tobias,

You can keep the width to medium and check the option Can Grow in Format option so that the texts gets shifted to next line.

-Nrupal