collapse text fields

Stimulsoft Reports.NET discussion
Post Reply
colin812
Posts: 6
Joined: Mon Apr 21, 2008 6:15 am
Location: scotland

collapse text fields

Post by colin812 »

Hi,

I have several address fields on my report that may or may not contain data. These are text fields.

If these fields are empty i would like the report to collapse these fields e.g.

Name - contains data
Address1 - contains data
Address2 - no data
City - contains data

should render

Name
Address1
City

Is this possible?

thank you,

Colin Edwards
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

collapse text fields

Post by Brendan »

I think there's two ways to accomplish this.

One is to put the text components for your entire address into a Container. Set the Dock Property of each text component in the container to Top so that they are stacked. Set the Can Shrink Property to true for each Text component.


The second method I believe is if you have them stacked on the page i.e. one underneath the other.

Set each text component to Can Shrink (So if it contains no text the size of the component can shrink to the smallest possible size).
Next, for each text component under the top one (Name), change its "Shift Mode" from "Increasing Size" to "Decreasing Size"
colin812
Posts: 6
Joined: Mon Apr 21, 2008 6:15 am
Location: scotland

collapse text fields

Post by colin812 »

thanks, worked perfectly :)
Post Reply