NULL row in text

Stimulsoft Reports.NET discussion
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

NULL row in text

Post by x46x »

Hi, I have this in "Text" band:

Code: Select all

{IIF(b.min_size1kk <= 0,null,"1kk "+" "+"("+Format("{0:N1}", b.min_size1kk)+" - "+Format("{0:N1}", b.max_size1kk)+")"+" m2")}<br>
{IIF(b.min_size2kk <= 0,null,"2kk "+" "+"("+Format("{0:N1}", b.min_size2kk)+" - "+Format("{0:N1}", b.max_size2kk)+")"+" m2")}<br>
{IIF(b.min_size3kk <= 0,null,"3kk "+" "+"("+Format("{0:N1}", b.min_size3kk)+" - "+Format("{0:N1}", b.max_size3kk)+")"+" m2")}<br>
{IIF(b.min_size4kk <= 0,null,"4kk "+" "+"("+Format("{0:N1}", b.min_size4kk)+" - "+Format("{0:N1}", b.max_size4kk)+")"+" m2")}<br>
{IIF(b.min_size5kk <= 0,null,"5kk "+" "+"("+Format("{0:N1}", b.min_size5kk)+" - "+Format("{0:N1}", b.max_size5kk)+")"+" m2")}<br>
{IIF(b.min_size6kk <= 0,null,"6kk "+" "+"("+Format("{0:N1}", b.min_size6kk)+" - "+Format("{0:N1}", b.max_size6kk)+")"+" m2")}<br>
But if there is a NULL row a I get only empty row as you can see in the attachment, but I want to shrink the row together if there is a NULL row. I want to ignore this NULL row and move the lower row upper. How can I do that? Thank you
Attachments
shrink.png
shrink.png (1.2 KiB) Viewed 4382 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: NULL row in text

Post by HighAley »

Hello.

The BR tag is used in each line. You should change the expression so that the BR tag will not be there is the line in empty.

Thank you.
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

Re: NULL row in text

Post by x46x »

I tried delete BR tag, enabled "can shrink" and "shift mode" but I still have the empty rows if there is a NULL row..
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: NULL row in text

Post by HighAley »

Hello.

Please, try to write the expression in one line.

Thank you.
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

Re: NULL row in text

Post by x46x »

If I write it in one line, I have everything in one row, but I want to have it under each other, but without NULL/empty rows..
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: NULL row in text

Post by Alex K. »

Hello,

Please try to use several Text components with DockStyle=Top and CanShrink=true properties.

Thank you.
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

Re: NULL row in text

Post by x46x »

Hello,
I have this text component inside data band where is some other different text component, so I can't use this solution..
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

Re: NULL row in text

Post by x46x »

This is how it look. I need it on exactly same spot. If I use your solution - it moves on top of the band and expands over the entire band..
Last edited by x46x on Mon Aug 29, 2016 12:19 pm, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: NULL row in text

Post by Alex K. »

Hello,

You can use additional Panel component.

Thank you.
Attachments
DockStyle.PNG
DockStyle.PNG (34.13 KiB) Viewed 4359 times
x46x
Posts: 18
Joined: Thu Aug 25, 2016 7:25 am

Re: NULL row in text

Post by x46x »

Many thanks, this is what I need.
Post Reply