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

Print line between detailrecords

edited December 2010 in Subreports
Hi,

First of all: I do have RB12 incl. RAP, so maybe that makes things easier
to accomplish???

To increase visibility of the next orderline, I want to print a dotted line
between each record/row.

I do not want to print this dotted line above the first record/row of below
the last record/row.
Also it should take into account that there might be multiple pages for one
order.
So I need some way to control the visibility.

Something like this must be the result:

Page 1 of 2

Description Amount
__________________________
My 1st orderline 20
------------------------------
My 2nd orderline 20
------------------------------
My 3rd orderline 20


Page 2 of 2

Description Amount
__________________________
My 4th orderline 20
------------------------------
My 5th orderline 20
------------------------------
My 6th orderline 20

Thanks,
Stef

Comments

  • edited December 2010
    Try placing a dotted Line at the top of the detail band. Implement the
    Line.OnPrint event to toggle the visibility.

    In RAP code this would be

    myLine.Visible := Report.Detail.Count > 1;



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2010
    Hello Nard,

    Thanks.
    Just when there are multiple pages the line is drawn too at the bottom of
    the previous page or at the top of the new page.

    Is there a way to handle that too?
  • edited December 2010
    I'm not clear on what the requirements are and thus I am not clear on what
    the issue is. Perhaps you can create a simple example using the DBDemos data
    and send to support@ in zip format and then I can take a look at it.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.