Shifting text down

Stimulsoft Reports.NET discussion
Post Reply
bnx2017
Posts: 6
Joined: Tue Jun 21, 2016 2:22 pm

Shifting text down

Post by bnx2017 »

I have two text items on a data band. One is a long text, and is set to word wrap and grow to fit the text. The other is a simple text that needs to be aligned to the bottom of the first. So the appearance is like:

xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx yyyy

Now, there is automatic growth in all sorts of ways, but none that seems to fit. With the alignment of the second to bottom and set to grow to height, it does not align nicely.
I therefore thought I would code this, so I have tried to get this to work:

TextSecond.Top = TextFirst.Top + TextFirst.Height - TextSecond.Height;

However, no matter which event I put it in, it always ends up aligned at the top of the first. It seems as though the height of the first is not updated at the point of the events. Could you point me in the right direction please? (If there is an order dependency, please let me know how to specify the ordering, as I cannot see anything obvious other than the front/back mode.)

My ideal would be a shift mode that specified to move the component top and not grow, but this only appears possible if the top is below the first.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Shifting text down

Post by Alex K. »

Hello,

Please try to use the ChildBand for the second text component. If the issue still present, please send us a simple report for analysis.

Thank you.
bnx2017
Posts: 6
Joined: Tue Jun 21, 2016 2:22 pm

Re: Shifting text down

Post by bnx2017 »

Thanks. I've read up on the child bands, and it won't do what is needed, because I want them on the same visual line across the page.

I happen to have sent you a sample related to another thing just the other day. See case 3143272 and item.desc and item.qty. The idea is to have the quantity and total align to the bottom of the text, and not the top.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Shifting text down

Post by Alex K. »

Hello,

Ok. Thank you.
We will reply to you by email.

Thank you.
Post Reply