PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Dynamic Body Height
Dynamic Body Height
Débuté par skippy, 26 juin 2019 21:46 - 4 réponses
Membre enregistré
17 messages
Posté le 26 juin 2019 - 21:46
I have a report like a document where several database fields with text are displayed in (kind of) sections (a html control). Now, if there is no text in one of the fields, I set the topic title and the text control to visible = false. Unfortunately the space that was occupied is still used and a lot of blank space is shown in the report. I tried several ways to reduce the height of the body according to empty fields and invisible controls, but with no success.

How can I dynamically align the body depending on the controls shown or not ?
Membre enregistré
17 messages
Posté le 04 juillet 2019 - 19:13
Maybe I formulated the problem not understandable enough., but the question behind is simple though.

"How can I remove empty controls from a report so that the body height will be adjusted and no empty space will remain for the empty control"

TIA.
Membre enregistré
68 messages
Posté le 30 mars 2023 - 09:11
Hi skippy,
I am facing the same problem.

May I ask if you solved that somehow?

Petr
Membre enregistré
54 messages
Popularité : +2 (2 votes)
Posté le 30 mars 2023 - 10:26
Hi,
I think you can solve this using iteration block
https://help.windev.com/en-US/…

You can place your (optional) controls in an iteration block and then

IF myConditionIsTrue THEN
iPrintBlock(myIterationBlock)
ENDIF

https://help.windev.com/en-US/…

Hope this helps
Andrea
Membre enregistré
68 messages
Posté le 19 juin 2023 - 06:18
Hi, it looks like it works. At least in my case :thank you:. Thanks. Petr