The MainModule already includes most of the functionality required for producing reports. Using the data module reportDM, it creates a PDF report on the server. The Sales Report Form shows the PDF report according to the target platform.
dSalesReport
This form exposes a property for receiving the filename (URL) of the PDF report before showing it. A full PDF Viewer (which can also download, print, and execute other actions) is already part of the uniGUI palette (available for both platforms).