Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically change field object length

Status
Not open for further replies.

digitaldallas

Programmer
Jun 6, 2005
31
US
Crystal allows for the conditional changing of the X coordinate of a field object. However, it does not allow the same for Y position, Height & Width.

Does anyone know of a workaround to change the length of a field object? 'Can Grow' is an option, but I'm not sure you can control how far it grows.
 
No simple way of doing this.
You could create multiple versions of the object and suppress all but one using suppress expressions.

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Can grow goes down the page, and how far is dependent upon your software version, later versions allowed you to specify how many lines max. But this isn't the length, it's the height.

A field is 2 dimensional, you speak of height, width and length, but fields only have 2 dimensions.

Perhaps you should describe what these 3 dimensions mean to you?

-k
 
Sorry if I wasn't clear. The length would refer to Width in the Size & Position of an object. I thought the 'Can Grow' would work horizontally, but I understand now that it is only vertical.

I hope that creating multiple objects at different widths isn't the only solution, but I will take what I can get.
 
I fear that it probably is the only viable solution, as you've noted, it won't dynamically grow in width.

As Ido mentioned, create objects and either place them in their own sections and conditionally suppress the sections based on len({table.field}), or you can overlap the fields and conditionally suppress each.

-k
 
I believe that will be my course of action (overlap fields).

Thanks synapsevampire for all your help.
 
As an alternative, you could create a text formula that contains a variable number of spaces...

You manage to leave us in the dark in relation to the actual reason or detail of what you are trying to achieve so it is hard to guess what options would address your need.

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Just to clarify, you could use the border property on such a text containing spaces object...

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top