Moving address lines up in a text box

Stimulsoft Reports.WEB discussion
Post Reply
caschetp
Posts: 2
Joined: Mon Oct 10, 2022 1:24 pm

Moving address lines up in a text box

Post 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
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Moving address lines up in a text box

Post by Lech Kulikowski »

Hello,

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

Thank you.
Attachments
Screenshot 2022-10-11 135437.png
Screenshot 2022-10-11 135437.png (84.68 KiB) Viewed 817 times
caschetp
Posts: 2
Joined: Mon Oct 10, 2022 1:24 pm

Re: Moving address lines up in a text box

Post by caschetp »

Hi

Thanks I will give that a go.

Paul
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Moving address lines up in a text box

Post by Lech Kulikowski »

Hello Paul,

You are welcome.
Chuck79
Posts: 1
Joined: Fri Oct 14, 2022 2:57 pm

Re: Moving address lines up in a text box

Post 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.
My website here : SexCams
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Moving address lines up in a text box

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply