cancel
Showing results for 
Search instead for 
Did you mean: 

adjusting space of textfield in details section depending on text length

Former Member
0 Kudos

Hi everybody,

depending on the hit (ticket in goup header) the space of a textfield in the details section can be various and should automatically be adjusted.

Can this be done in CR?

How can I avoid that a second field in the same details section will be covered then, if the text is very long?

rgds

Eberhard

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Eberhard,

Do you mean to say that a 'long' text field on the Details section 'overlaps' another field on the same Details section?

Where is this second field placed? Is it directly below the one that grows?

If yes, here's what you need to do:

1) Go to the Section Expert > Highlight Details > Insert. You should now see Details a and Details b.

2) Place the second field on Details b.

-Abhilash

Former Member
0 Kudos

Hi Abhilash,

yes, that´s what I meant.

I really think that this is the only way, yes. Because I tried already.

But because I have several detail sections already, I was scared to do so.

I don´t want to loose the overview.

tks

Eberhard

abhilash_kumar
Active Contributor
0 Kudos

Separating fields into multiple sections is the only workaround to avoid fields from overlapping.

-Abhilash

DellSC
Active Contributor
0 Kudos

If the field on the left is overlapping the field on the right in preview, but you don't have it overlapping in the design, there is a registry key available that will prevent this.

If you're on Crystal 2011 or newer, the base registry section for this is

  • HKEY_LOCAL_MACHINE\ Software \Wow6432Node\SAP BusinessObjects\Suite XI 4.0\ (on 64 bit OS)
  • HKEY_LOCAL_MACHINE\ Software \ SAP BusinessObjects\Suite XI 4.0\ (on 32 bit OS)

You then add Crystal Reports\SavedData\TruncateClippedFieldStrings and set the value to "Yes".

This will cut off the end of the data instead of overwriting the field to the right.

-Dell

Answers (1)

Answers (1)

former_member205840
Active Contributor
0 Kudos

Hi Eberhard,

For second question, you can right click on the field and go in common and apply Can Grow this will help you to ward wrap in second line.

For first one place your text field and right click -- go in format text field-- borders -- click on Tight Horizontal, this will help you to reduce the text field size based on text or you can write a formula to do this in formula editor against this option.

Thanks,

Sastry