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.
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)
Comments
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.
data or no data.
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
http://www.digital-metaphors.com
info@digital-metaphors.com