Frame the detail band
Hi,
Is posible to frame (box shape) the whole detail band?
Is is posible to draw a box shape for every record on detail but I would like to have frame the stretches the whole area and reach the summary band even if is only one record in the detail.
Is this possible?
Regards,
Mario
Is posible to frame (box shape) the whole detail band?
Is is posible to draw a box shape for every record on detail but I would like to have frame the stretches the whole area and reach the summary band even if is only one record in the detail.
Is this possible?
Regards,
Mario
Comments
This can be done in a number or ways.
1. Using Lines: 4 lines (left and right aligned inside the detail band, bottom aligned in the header band and top aligned in the summary band).
2. Conditional Lines: All 4 lines in the detail band, and conditionally toggle the top and bottom lines based on the band count. This would require a two-pass report or pre-processing to know how many records are present.
3. Borders: Similar to lines only using band borders (detail, header, and summary).
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you for answer, I've tried option 1 and 2 but still can make the border lines of the detail band go all the way down while there is no enough records to fill the page.
Please see attached image for reference.
Regards,
Mario Enriquez
Thanks for the clarification.
In this case you will need to manually add lines to fill the empty space between the last detail band and the footer band. See the following article/example on how to fill a page with (horizontal lines). Your code would be similar only creating two vertical lines on either side of the page.
https://rbwiki.digital-metaphors.com/delphi-code/formatting-delphi-code/how-to-fill-a-page-with-lines/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I trying to translate the example to RAP and have run into ppReport1.Engine.PrintPosRect.Top and ppReport1.Engine.PageBottom that couldn't translate. Is there any equivalent I could use in RAP?
Regards,
Mario
I first suggest getting this working in Delphi before moving your code to RAP.
Access to the Engine.PageBottom and PrintPosRect is not directly possible in RAP. You will need to create a pass-thru function to retrieve these values. See the main RAP demo on how to implement RAP pass-thru functions.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com