Hello, Matthias.
Sorry, but we don't see any variable in your report.
Please, look at our sample report template.
We use there 4 variables, Before Print, Begin Render events of the Data Band and Get Value events of each text component where you need to change width.
Is Addition you could set the Dock Style property of the last component to Fill to fill all available space.
Thank you.
Table Auto Width with Header Bands
Re: Table Auto Width with Header Bands
Hello, Aleksey,
thank you, but at first, the auto scale has to work well, before I can start to implement the variables.
You remember, one of my requirements was to set a minimum width for some columns. When I set the MinSize property of the last column and set the Dock Style property to fill for this column, then it is still possible, that the last column will be printed outside the printable area.
This would not happen with the table component...
So, my current conclusion is: it is not possible
Or I have to scan to whole result set in code to get the lengths of all columns and implement an own auto scale algorithm.
Maybe in a future version you will add the possibility to ask for the rendered width of a cell of the table component......
Thanks & Regards,
Matthias
thank you, but at first, the auto scale has to work well, before I can start to implement the variables.
You remember, one of my requirements was to set a minimum width for some columns. When I set the MinSize property of the last column and set the Dock Style property to fill for this column, then it is still possible, that the last column will be printed outside the printable area.
This would not happen with the table component...
So, my current conclusion is: it is not possible

Maybe in a future version you will add the possibility to ask for the rendered width of a cell of the table component......
Thanks & Regards,
Matthias
Re: Table Auto Width with Header Bands
Hello.
The Table component is simplified way to use Data Band, Header, Footer and text components. The Table component imposes some restrictions on functionality of all those components and gather them in one. At rendering time you get Data Band, Header, Footer and Text components from the Table component.
In your report there are Group Headers and Group Footers. The size on text components will not be changed on them with cells of the Table. So you need to write more complicated algorithm for your not usual case.
In your case this is the only way and we don't see how to implement any unified algorithm in our product.
Thank you.
The Table component is simplified way to use Data Band, Header, Footer and text components. The Table component imposes some restrictions on functionality of all those components and gather them in one. At rendering time you get Data Band, Header, Footer and Text components from the Table component.
In your report there are Group Headers and Group Footers. The size on text components will not be changed on them with cells of the Table. So you need to write more complicated algorithm for your not usual case.
In your case this is the only way and we don't see how to implement any unified algorithm in our product.
Thank you.