Page 1 of 1

Moving address lines up in a text box

Posted: Mon Oct 10, 2022 7:11 pm
by caschetp
Hi

I am creating a despatch note and I have a ship to Text box with the following fields

{Name}
{Address line 1}
{Address line 2}
{Address line 3}
{Zip code} {City}
{Country}

It does not look good if address line 2 and 3 are blank, it just leaves a space. So I would like it if any of the lines are blank to push up the other lines. For example if address line 2 and 3 are blank it would look like this

{Name}
{Address line 1}
{Zip code} {City}
{Country}

Is there a way blank lines can be suppressed and the non blank lines moved within the text box. I was able to do this in Crystal Reports but canno0t see how to do it here. Any help appreciated !

Thanks
Paul

Re: Moving address lines up in a text box

Posted: Tue Oct 11, 2022 11:51 am
by Lech Kulikowski
Hello,

You can use the DockStyle=Top and CanShrink properties for text components.

Thank you.

Re: Moving address lines up in a text box

Posted: Tue Oct 11, 2022 1:14 pm
by caschetp
Hi

Thanks I will give that a go.

Paul

Re: Moving address lines up in a text box

Posted: Tue Oct 11, 2022 7:49 pm
by Lech Kulikowski
Hello Paul,

You are welcome.

Re: Moving address lines up in a text box

Posted: Mon Oct 17, 2022 12:30 pm
by Chuck79
Lech Kulikowski wrote: Tue Oct 11, 2022 11:51 am Hello,

You can use the DockStyle=Top and CanShrink properties for text components.

Thank you.
Hello and thank you @Lech Kulikowski for sharing. It gives me some clarification on the creation of my despatch note.

Re: Moving address lines up in a text box

Posted: Mon Oct 17, 2022 1:15 pm
by Lech Kulikowski
Hello,

You are welcome.