Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Frame the detail band

edited June 11 in General
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

Comments

  • Hi Mario,

    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).
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi Nico,

    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.
    image

    Regards,
    Mario Enriquez
  • Hi Mario,

    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/
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 13
    Thank you very much Nico.

    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
  • Hi 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.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.