OK. I got it working. Perhaps this might be of help to someone else in the 
future.

My list box is an array based list box which is being populated at print time. 
The listbox on load form event uses LISTBOX INSERT COLUMN and a few object 
commands to build the listbox with previously populated arrays. I got it to 
work with the following…

                                PRINT SETTINGS
                                $printed:=0
                                If (ok=1)
                                        OPEN PRINTING JOB
                                        If (ok=1)
                                                FORM 
LOAD([_Constants];"HouseCallsFirstNames.Print")
                                                
                                                Repeat 
                                                        $end:=Print 
object(*;"HCFirstNameReport")
                                                        
                                                        If (Not($end))
                                                                LISTBOX GET 
PRINT INFORMATION(*;"HCFirstNameReport";lk last printed row number;$printed)
                                                                
                                                                If ($printed=42)
                                                                        PAGE 
BREAK
                                                                        
                                                                End if 
                                                                
                                                        End if 
                                                        
                                                Until ($end)
                                                
                                        End if 
                                        
                                        CLOSE PRINTING JOB
                                        
                                End if 

Note that for this to work the loading of the listbox has to be in the listbox 
on load event, not the forms on load event.

John





> On Jun 3, 2017, at 12:03 PM, John Baughman via 4D_Tech <[email protected]> 
> wrote:
> 
> I want to print a form that contains a single listbox. How do I make the list 
> box print beyond the first page? Works great if the list fits on a single 
> page, but only prints the first page if it is longer.
> 
> I have the listbox fully inside the detail area and have tried using PRINT 
> SELECTION and Print Form. There is a text variable that needs to print as 
> well above the listbox.
> 
> Looks like I need to use Print Object but need an example of how/where to use 
> it.
> 
> Thanks,
> 
> John
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to