How to avoid white spaces when hiding fields

Stimulsoft Ultimate discussion
Post Reply
lanfro
Posts: 24
Joined: Mon Jan 16, 2012 3:48 am
Location: Norway

How to avoid white spaces when hiding fields

Post by lanfro »

Hi

We have a requirement that a user should be able to hide or show certains fields in the report based on a selection in a checklist. We use the "Activated" bool property of the "Text" component to hide or show the fields. That works great! However when the fields are hidden, it leaves a blank white space where the hidden fields are. These empty blank areas takes space and do not look good in the report. Is it possible to make the fields collapse like a "gridlayout" would do in a WPF window?
I have added some screenshots to make it more easy for you to understand what the problem is. The report in the screenshots is just a test report to show the problem.

Thank you.

Regards
Frode
Attachments
Report_white_space.jpg
Report_white_space.jpg (344.96 KiB) Viewed 1701 times
Report_wanted_result.jpg
Report_wanted_result.jpg (354.5 KiB) Viewed 1701 times
Report_layout.jpg
Report_layout.jpg (524.68 KiB) Viewed 1701 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to avoid white spaces when hiding fields

Post by Alex K. »

Hello,

Please try to use additional Bands with the Condition and ComponentIsEnabled option.
Please see the sample in the attachment.

Thank you.
Attachments
ReportSample.mrt
(20.92 KiB) Downloaded 295 times
Post Reply