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

Summary Band at bottom of page with vertical lines in detail

edited January 2003 in General
I want to force the Summary band to print at the bottom of the last page.
I can do this with the band's PrintPosition property but there's a
complication...

In the detail band I have vertical lines separating various columns. On
the last page I want these to stretch down to meet the summary band.

Is this possible? or is there a better way to implement the vertical
lines?

TVM,

Dave Riley
Tangent Software Ltd, Reading, UK

Comments

  • edited January 2003
    You'll probably have to create draw commands to draw lines from the last
    detail band to the bottom aligned summary band. Here is an example of moving
    the draw commands for the summary band to the bottom of the page, as an
    alternative to setting the PrintPosition. If the summary needs to break
    across pages, it can do so as well. To draw the lines there is a demo
    showing how to do this too. You'll have to merge the two tips together to
    get the behavior you are looking for.

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

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

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Thanks Jim. Are all these tips available by browsing from the web site? I
    couldn't find any list of them there and I wasn't able to go directly to
    http://www.digital-metaphors.com/tips.

    Dave.

    On Thu, 23 Jan 2003 11:12:22 -0600, support@digital-metaphors.com (Jim
  • edited January 2003
    We have it on our to-do list to make a web page which has descriptions for
    each of the "tips."


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    > We have it on our to-do list to make a web page which has descriptions

    I'll look forward to that, & I expect I won't be the only one :-)

    TVM,
    Dave.
  • edited February 2003
    In the DrawLineOnEachSide.zip sample, how i can change pen width?

    Andrade
    Deza Business
  • edited February 2003
    > In the DrawLineOnEachSide.zip sample, how i can change pen width?

    To this part...
    lDrawLeftLine := TppDrawLine.Create(nil);
    lDrawLeftLine.Page := ppReport1.Engine.Page;
    lDrawLeftLine.LinePosition := lpLeft;
    lDrawLeftLine.Left := ppReport1.PrinterSetup.PageDef.mmMarginLeft;
    lDrawLeftLine.Top := liTop;
    lDrawLeftLine.Height := liBottom - liTop;


    add this line...
    lDrawLeftLine.Pen.Width := 2;


    Dave
  • edited February 2003

    "Dave Riley" escribi? en el mensaje
  • edited February 2003
    I agree. This looks like it might be a bug in ReportBuilder. I've tried it
    with 3 different print drivers (1 Panasonic laser, 1 HP inkjet and a PDF
    driver).

    It seems you *can* successfully set the width of horizontal lines to be
    wider than 1 pixel, but *not* that of vertical lines - the setting is
    ignored.

    Can anyone else confirm this?

    Dave.



    On Fri, 7 Feb 2003 10:40:02 +0100, NOSPAMfrancisco@deza.com (Francisco)
  • edited February 2003

    I looked at the RB Source code. You need to set TppDrawLine.Weight. The
    property type is Single. The value is in Twips. From the TppLine help
    topic:

    This property determines the width of the line. It is expressed in
    points, which are roughly equivalent to 1/72nd of an inch. This is the
    property which is set when you select a line width from the Draw
    toolbar.

    If you look in ppViewr.pas, the method
    TppScreenDevice.DrawLine(aDrawLine: TppDrawLine) you will see the
    following code:

    {get pen width}
    liPenWidth := Round( (aDrawLine.Weight * Screen.PixelsPerInch / 72) *
    FScaleX);






    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2003
    Thanks,

    Francisco Andrade
    Deza


    "Nard Moseley (Digital Metaphors)" escribi? en
  • edited February 2003
    Thanks Nard.

    Dave.

    On Fri, 07 Feb 2003 15:46:13 -0600, nard@digital-metaphors.com (Nard
This discussion has been closed.