[futurebasic] Printing an Edit field with page breaks

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2003 : Group Archive : Group : All Groups

From: Barrie <barrie@...>
Date: Mon, 08 Dec 2003 16:32:12 -0500
I am printing a FieldContainer$$ as follows
ROUTE _toPrinter
FN PrintMyContainer
ROUTE _toScreen  

FN PrintMyContainer puts a container$$ in an EDIT FIELD and everything is
fine if the height of the EDIT FIELD is smaller than the height of the page.
I derive the EDIT FIELD size from the following:
widthOfString = FN TEXTWIDTH ([[@FieldContainer$$]],0,LEN(FieldContainer$$))
boxHeight = (1+ USR roundup(widthOfString / (pageWidth - gLmargin -
gRmargin))) * USR FONTHEIGHT

If I could print the container$$ one line at a time, I could easily
determine when to CLEAR LPRINT. Since I don't know how to do this, I am
simply printing the entire contents of the EDIT FIELD.
Can someone suggest how I can force a large EDIT FIELD to print on more than
one page?  
Thanks
Barrie