Hi All, Never mind - unless you found something a bit easier…
I found an older JPR example (I think) and it was really easy! Just change the code to something like this: C_BOOLEAN(vOver;$ref) PRINT SETTINGS If (ok=1) SET PRINT PREVIEW(True) OPEN PRINTING JOB FORM LOAD("Timescan_print") vOver:=False // Flag for cancel printing Repeat $ref:=Print object(*;"tscanChartInfo") vOver:=Print object(*;"lb_Timeline") If (Not(vOver)) PAGE BREAK End if Until (vOver) CLOSE PRINTING JOB End if For all those who might need it in the future. John… > Hi All, > > I have an array based listbox of results that needs to be printed. I am > starting with simple code: > > PRINT SETTINGS > If (ok=1) > SET PRINT PREVIEW(True) > OPEN PRINTING JOB > FORM LOAD("Timescan_print") > $ref:=Print object(*;"tscanChartInfo") > $ref:=Print object(*;"lb_Timeline") > CLOSE PRINTING JOB > End if > > But this only prints a single page (rows printed based upon listbox height). > Obviously I haven’t designed it to calculate and print multiple pages yet and > want to be efficient as I proceed. > > Before I stumble my way through this I have reviewed past NUG threads and > looked at Miyako’s and Keith’s examples But either, in Miyako’s case, it > creates random values on the fly but does create multiple pages, for Keith’s > example which stops at the size of the listbox. > > So do I need to create a series of form pages: Header, row lines, footer, > etc. and then print object and calculate or…. > > Is there an easier way to manage array based listbox printing over many pages? > > Does anyone have any sample code of printing multi-page array based list > boxes? > > Thanks, > John… > ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************