From Xojo Documentation
Used to generate reports.
|Document||Reports.RBReportDocument||Contains the rendered pages after the report is Run.|
|Run||ds as Reports.DataSet, printerSettings as PrinterSetup||Boolean||Generates a report document from the given dataset.|
|Report||units as Report.Units||The units that the report uses. The default is Reports.Units.Pixels.|
See the "Reports" chapter in the User's Guide for a description of the visual Report Layout Editor and the two example projects that are included with REALbasic.
There are two example projects that illustrate the reporting engine. The Gas Report project uses a text file as its data source and Example Database uses a REAL SQL Server relational database as its data source. In other respects, the two projects are very similar.
If rpt.Run( ds, ps ) Then