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:

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

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