push text after bookmark to end of document before footer

  • i need to push text after definite position (for example at bookmark)
    to the end of self page before footer at freespace from page. I can do this with

    Code
    if WPReportview.BookmarkMoveTo('AKONTO') then
    	  begin
    	    WPReportview.CPMoveNext;
    	    WPReportview.Memo.Cursor.active_paragraph.spacebefore := ?????
    	  end;

    i seen an Example at https://www.wpcubed.com/forum/viewtopic.php?t=1468
    but the value are not correctly.
    the document create from WPReporter

    Thanks, roland

    • Offizieller Beitrag

    Hi,

    the natural way to do this would be the use of footnotes - this requires the Premium Editon.

    The demo you found uses the paint watermark event - also a good thing. You only need to know which bookmark is on which page. The latest version stores the pagenumber in the property TextObj.ParentPageNr.
    The change of "spacebefore" I cannot recomend. Any insertion of text will change the document completely.

  • i Print invoice from wpreperter after supermerge.execute i must reformat
    the result document after the position

    to end of the last page immediately over the footer of last page.
    i can not calc the freespace for all text from the last page to footer.
    i must have the formula in unit of par.spacebefore

    thanks
    Roland