Home General

Stretching memo until end of page

edited July 2001 in General
I would like to know how can i stretch a memo until end of page.

Thanks in advance.

AA

Comments

  • edited July 2001
    Hi,

    the memo will stretch to the end of the page. If you want to start the
    memo allways at the same position use the print position of the band. Or
    if you allways want a pagebreak after the memo consider the RBAddon
    Tools (http://www.bancoems.com/rbaddon.htm) which include a page break
    component.

    enjoy,
    Ron.

  • edited July 2001
    I would the memo stretch to the end of the page even if has only one line of
    data or no data.
  • edited July 2001

  • edited July 2001
    Yes, but would the memo stretch until end of page if i force a page break?
  • edited July 2001

  • edited July 2001
    Another option is to use the BottomOffset property of the memo. This will
    force space to print after the memo. This can be calculated by using a
    TppMemo and assigning the text from the pipeline in the
    detailband.BeforePrint event. Then use the TppMemo.CalcSpaceUsed (this is
    in microns) along with the current printing position of the engine
    (Report.Engine.PrintPosRect.Top in microns also) on the page and the top
    positional value of the memo (TppMemo.Top). From these measurements you
    should be able to calculate the space left on the page and how much space
    the memo will use to determine the BottomOffset that should be applied to
    effectively force the components to show up on the next page after the memo.

    To convert inches to microns or vice versa, use ppTypes, and see the
    ppUtils.pas functions:
    ppToMMThousandths(MyValue, utInches, pprtHorizontal, ppReport1.Printer)
    ppFromMMThousandths(MyValue, utInches, pprtHorizontal, ppReport1.Printer)


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.