Skip to Content
avatar image
Former Member

Dynamic Field length

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 27, 2015 at 12:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2015 at 12:43 PM

    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

    Add comment
    10|10000 characters needed characters exceeded