Inserting blank rows in report.

Hi all,
I have a report that can include 20 rows in each page. When my dataset has less than 20 records, I want to print blank rows (20-RecordCount) at then end of report such as a word table. I set RowCount property of MasterData Band to 20 but it has no effect.
Can I do this with fastreport 3?

Best Regards,
RSK.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:35AM
    You don't understand the row count property of a data band.
    When a data band us connectted to a datasource the datasource controls the number of times the row repeats, row count is used when the band has no datasource.
    What you do is add an orphaned childband containing empty memos with frames turned on if desired.
    and call showband(bandname) for example froma detail footer obp event
    if engine.freespace -footerband.height > childband1.height +1 then
    showband('childband1');
    ;)



  • edited 7:35AM
    Hi gordk,
    Thank you for your reply.
    I test this, but it print ChildBand only 1 time. I want to print it (20-Recordcount) times.
  • gordkgordk St.Catherines On. Canada.
    edited 7:35AM
    so add some variables to the event retrieve the freespace divide it by the child height and call show band in a loop
    or try using a while do block instead of the if then block in the example.
    You have the general idea, it is up to you to write code for your specific situation.
    ;)

Leave a Comment