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 4:40PM
    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 4:40PM
    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 4:40PM
    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

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.