How do you print a view in an xpage or a data table

I’m trying to print both a view also a data grid.

My columns contain mixed data from an underlying view source as well as computer columns mixing in data lookups from other views.

How do I print this out as a report for the user