How To…Fill a Page With Lines


“How can I fill the remaining space of a page with lines after the last detail has printed?”


  1. Use a group to keep track of the position of the last detail band on a page.  The GroupFooterBand.AfterPrint event can be used to mark the position.
  2. The Report.OnEndPage event can then be used to manually add line drawcommands to the page from the marked position to the bottom.


Sample Delphi code: