WPCubed Product Support

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

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

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

Thanks, roland

#1 ♥ 0
5.3k Views 1 links 2 users read 2 min
support

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.

#2 ♥ 0

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

begin Bookmark(1) 
    amount paid on account
    term of paimant 
    postal charges
end Bookmark(1)

free
free
free
free
free

footer

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

#3 ♥ 0
support

I suggest to create a footer for the last page and put the result there.

WP.HeaderFooter.Get(wpIsFooter, wpraOnLastPage).RTFtext.AsString := 
   WP.HeaderFooter.Get(wpIsFooter, wpraOnAllPages).RTFtext.AsString;
wpActiveText := WP.HeaderFooter.Get(wpIsFooter, wpraOnLastPage);
InputString('This is the total' + #13);
#4 ♥ 0
This category is archived. No new posts are possible.