Table object
Please take a look at this problem. Maybe it is not possible, then it could be something for a new major version..?
We do have a lot of reports that are custom for all our customers. Only a few columns should be optional.
We looked to the Table object. It seems to be perfect for that.
We create a Table object and fill a dozen of columns with a datasource field.
We set the properties of the Table object to Anchor and Dock to make sure it will use the whole width of the paper.
By runtime we set the property visible of a Cell to false. The cell is invisible now but the Table object is decreased.
I expect that the columns would stretch and the Table object keeps the Width.
I know we can change the Width of the columns by code, but it would be very cool to have some properties settings that be smart enough to solve this problem automatically.
Any idea if this soemthing that could be done in some new build/version?
Thx
Hans
We do have a lot of reports that are custom for all our customers. Only a few columns should be optional.
We looked to the Table object. It seems to be perfect for that.
We create a Table object and fill a dozen of columns with a datasource field.
We set the properties of the Table object to Anchor and Dock to make sure it will use the whole width of the paper.
By runtime we set the property visible of a Cell to false. The cell is invisible now but the Table object is decreased.
I expect that the columns would stretch and the Table object keeps the Width.
I know we can change the Width of the columns by code, but it would be very cool to have some properties settings that be smart enough to solve this problem automatically.
Any idea if this soemthing that could be done in some new build/version?
Thx
Hans
Comments
You may use dynamic mode of the Table object to fill it in code and adjust the width. There are some demo reports that demonstrates this (see "Table" category in the main demo). I will consider adding the option to adjust table width to page automatically.