Report.Document

From Xojo Documentation

Revision as of 03:09, 29 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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