Fixed Bottom of a Band

Hello,

I have a Report that is a fixed form (or almost this). In the middle of the Report, there is a Table, which receives Data from a DataSet. This Table has borders, and it's Bottom must be fixed.

The size of the Report header can vary. And if this happens, we must increase or decrease the size of the Table (without changing it's bottom position).

The Report can have more than one page, if the itens exceed the size of the table. The others pages will have exactly the same layout.

Any suggestions will be welcome.

Btw, how is my English? ;)

Thanks in advance!

Best Regards.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:57AM
    Hi Gabriel
    english is great
    What you probably need to do
    in the oap or oach event of pageheader retreive the record count of the dataset
    varname := bandname.dataset.recordcount
    also the freespace available
    engine.freespace
    freespace /databand height should give us how many records can be printed on the page.
    if the number of records to print is < recordcount set the engine cury to a new value to drive the starting point down.
    you will probably need a few variables to track oldy,newy, page, numrecords left toprint, etc.
    ;)
  • gordkgordk St.Catherines On. Canada.
    edited 8:57AM
    Hi Gabriel
    ill post a demo report that replaces 4.frf in the main demo., to the binaries newsgroup "modified masterdetailsubdetail/ you should be able to build on this with the addition of some variables to track the count of subdetail records.
    ;)

Leave a Comment