I found a nice example project in xojo. looks like this one can handle the listbox printing based from database.
The file is in example / reporting / product / List of product.
I have a problem to add the footer there and also the image. I tried to put the footer label in the footer section and the image from external file on the header section also not showing and not print also.