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.
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
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');
Thank you for your reply.
I test this, but it print ChildBand only 1 time. I want to print it (20-Recordcount) times.
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.