Report.Document

From Xojo Documentation

Property (As RBReportDocument )
aReport.Document = newRBReportDocumentValue
or
RBReportDocumentValue = aReport.Document

Supported for all project types and targets.

Contains the rendered pages after the report is Run.

Examples

This example runs a report to obtain the rendered pages in Reports.DataSet:

Dim ds As New GasDataSet
Dim ps As New PrinterSetup
Dim rpt As New GasPricesReport

If rpt.Run(ds, ps) Then
If rpt.Document <> Nil Then ReportViewer1.SetDocument(rpt.Document)
End If