I have an input form that has
- some header information including fields and text labels. All grouped as one object- “Header”
- a listbox “lbPrint”
The contents of the listbox may sometimes exceed the length of the page.
The goal is to print the header information and then a variable amount of pages of the listbox.
The code I am using is:
OPEN PRINTING JOB FORM LOAD ([Table];"Print") $fResult:= Print object (*;"Header") $fOver:=False Repeat $fResult:= Print object (*;"lbData") LISTBOX GET PRINT INFORMATION (*;"lbData";lk printing is over;$fOver) PAGE BREAK Until ($fOver) CLOSE PRINTING JOB
Either of the calls to Print object alone prints the correct information. i.e. if I just run part of the code it is fine.
But when I call all of this code, the first call does not appear. I get a blank space on the page where the header information should appear. And then the listbox information as expected. i.e. the print calls are not stacked one on top of the other.