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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving a text object based on length

Status
Not open for further replies.

DotNetNewbie

Programmer
Mar 3, 2004
344
GB
Hi,

Firstly, my apologies this is being posted for a friend so I hope I have the terminology correct:


I have two text objects and would like to keep both of the text objects always together. The issue I am having is that the content of the first text object is variable in length (keeps changing). Hence, the position for the second text object needs to be adjusted according to the length of the first text object.

I need to understand how to set a position of a text object based on the length of another text object.

Any help/advance most welcome, thanks in advance.

.net
 
In Crystal, a 'Text Object' is text that you enter. So I am assumning you mean Formula Fields or Data Fields.

What you can do is put a pair of Formula Fields or Data Fields into a Text Object, along with text or spaces if you need it. This will look fine for variable-length data.

PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options. In this case, it probably makes no difference.


[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Do you mean vertical length? You should insert a second section (b), and place the first object in section_a and the second in section_b. This will maintain the relative positions regardless of growing.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top