Page 1 of 1

Issue with DockStyle Fill

Posted: Wed Nov 17, 2021 5:06 pm
by consiliari
Hello there,

I'm trying to build a report with a dynamic column. I already tried all sorts of tricks to make this work. From what I'm reading here in the forums. It's often suggested to use the Dock property. I tried it by setting all of my columns (text boxes) to dockstyle left and only the "growing" one to dockstyle fill. This works as long as that column is the last one to the right. But if I have any more column to the right and I want my growing/filling column in the middle it does not work, but overlays all the column to the right; see attached example which I adapted from a sample provided here in the forums. Any advice how to make this work ?

Re: Issue with DockStyle Fill

Posted: Mon Nov 22, 2021 2:07 pm
by Max Shamanov
Hello.

Sorry, we need more time to prepare an answer for you.
We will let you know when we get any results.

Thank you.

Re: Issue with DockStyle Fill

Posted: Wed Nov 24, 2021 1:30 pm
by Max Shamanov
Hello,

You can use DockStyle property "Fill" for the last text component on DataBand. It will stretch it to another text component with DockStyle property "Left".

If you want to stretch all text components to the same width without DockStyle property, you should use Events in the DataBand.
We added an event in "Get Tag" to get rendered component on the report page. At "After print" we added an event that change the width
and the position of each text component with the new width.

We attached two report samples with and without using DockStyle property.

Thank you.