How To…Draw a Line After Last Detail

Question

“How can I draw a horizontal line after the last detail band on each page?”

Solution

The solution is to use the DetailBand AfterPrint event to track the page position and then use the Report EndPage event to add a DrawComamnd to the Page.

 

Download:  LastDynamicDetailLine.zip

Sample Delphi code: