Dynamic table columns - Distribute columns to table's width
I'm migrating a HTML report to FastReport.Net. The report has dynamic columns.
The Table is definde as follows:
The column's 'ASCII Position', 'Fieldname' and 'XML Tag' depend on flags in the data. I Manged to hide the columns. But I didn't get the equivalent of or anything near the current HTML-report, because the column is simply not painted.
I would like to achieve the behavior as in HTML, where I set the Table to a certain width and the columns have a percentual width and spread over the given fixed width for the table.
In my report, the result looks as follows:
What I try to achieve is something like the following:
- set the table.width to 17,5 cm
- set the column.width for 'Name' to something like '30%'
- set the column.width for 'Beschreibung' to something like '70%'
- set the other visible columns to thier fixed witdt (e.g. 1,5 cm)
I would expect to have always a tablewidth of 17,5 cm. Further I would expect that the "dynamic" width colums calculate thier width like this: table.width - ('all fixed width') * column.width (e.g. 30%)
Is there a simple way to achieve this?