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

Drawing a line down the left-hand margin

edited February 2004 in General
Hello All,
I've probably missed something obvious... but I can't seem to get a line to
draw down the full length of the left hand side of the page - regardless of
the size of the various bands. Could someone point me in the right
direction.
Thanks
Colin

Comments

  • edited February 2004
    Hi Colin,

    You can place a TppLine in each band and set its StretchWithParent property
    to True to force a line to stretch the height of the dynamic band.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Hi Nico,
    I had tried that method earlier, however the line would stop short on the
    last page when the records in the details band stoped around half way up the
    page, then the final bit of the line would be displayed in the page footer
    band.
    Colin

  • edited February 2004
    Hi Colin,

    Check out the following example. It shows how to add lines on each side of
    the page inside the empty space below the detail band and above the page
    footer. Hope this helps.

    http://www.digital-metaphors.com/tips/DrawLineOnEachSide.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Nico Cizik (Digital Metaphors) wrote:

    I have just across a similiar problem, I think. I am currently
    designing a report (invoice) which will laid out as such.

    ----------
    Header
    ----------
    Details (1 or more, across 1 or more pages)
    ----------
    Footer
    ----------

    The Header will be variable sized dependant upon user selection.
    Footer may not be visible or variable sized.

    I was trying to get a box drawn around the area containing the maximum
    size of the details are, ie one that starts just underneath the Header
    and finishes just above the footer not around just the details that are
    printed. Is this the approach I should use.


    Mark Davis
    Elite Practice Solutions.
  • edited February 2004
    Hi Mark,

    Yes, this approach should work for you as well. You will need to add the
    draw commands like the example does, just format them to match the borders
    you have already drawn around the detail bands.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Nico Cizik (Digital Metaphors) wrote:
    Thanks Nico,

    It works well.


    Just for anyone for anyone else following this thread, I finally found
    that the thickness of the line is set via the Weight property (in points)

    The help for TppDrawline for Pen, LinePosition and LineStyle also seems
    to "(always in thousandths of millimeters.)" in them for no apparent reason.

    Mark Davis
    Elite Practice Solutions.
This discussion has been closed.