Fixed Bottom of a Band

edited 12:18AM in FastReport 3.0
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 12:18AM
    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 12:18AM
    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

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.