views:

264

answers:

1

Hi, I am trying to display a table to display of products (rows) in a single A4 fixed layout page. I manage to add a table with header/detail/footer sections but I can not set a minimum heigth for the detail section (150mm for example). If I set a 150mm heigth on the detail row, then Each row will have that 150mm heigth. Whereas I would like, each row to have a minimal heith (could be on several line if the content of some columns is wrapped).

        +---------+--------+--------------+
Tbl Hdr | col1    | col2   |   col3       |
        +---------+--------+--------------+
Tbl Dtl | [val1]  | [val2] | [val3]       |
        +---------+--------+--------------+
        |                                 |  <-should have a variable heigth
        +---------+--------+--------------+
Tbl Ftr |         |        |     Total    |
        +---------+--------+--------------+

If a set not heigth on the detail row then the footer comes, right beneath the detail rows, instead of sticking at the bottom of the page :-(

I hope this makes sense (if not I could provide more details). Any help would be greatly appreciated. Thanks in advance.

A: 

A BIRT report uses an auto-layout engine to optimze the content for the current context. This is designed to make the report look as good as possible regardless of the display/screen. In fact it is intended to minimize if not eliminate the verywhitespace you are trying to preserve.

One thing you could consider doing is to add a second detail row. You can then give this detail row a fixed height and have it consume the remaining whitespace. Alternatively, place a second table in the footer of the Master Page that will render the data you want and bind it to the bottom of the page. This has the advantage of adhereing tot he bottom of the page regardless of page type (letter, A4, etc...).

MystikSpiral
@MystikSpira: Thanks for your answer.I went with the first solution you offered. I also had to make the fixed heigth row visible only after rownum greater than 3 (arbitrary value...) to avoid unwanted page breaks.Not very nice solution but I can't spend any more time on this...Thanks again for your help.
kiwifrog