Table object

edited January 2010 in FastReport .NET
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


Comments

  • edited 6:38PM
    Hello,

    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.