I have a listbox on a webpage which is populated and I’m looking to create a copy of it to pdf as a web file.
I can ‘draw’ the listbox line by line and populate the results from the weblistbox content but that seems a looooonnnnggg way round. Looking at the docs I can see pdflistbox which is ‘a standard listbox that can be embedded into a pdf document.’ which to me suggests it can just be copied … somehow ! but cant figure out how.
you must look at the pdftable class, make your listbox (which must be a subclass of the xojo listbox) have the class interface PDFTableDataSource, to send the data to the pdfdocument you create using the pdfdocument.addtable method.