Skip to main content
All docs
V23.2

DxReportViewer.Report Property

Specifies the report to open.

Namespace: DevExpress.Blazor.Reporting

Assembly: DevExpress.Blazor.Reporting.v23.2.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

[Parameter]
public IReport Report { get; set; }

Property Value

Type Description
IReport

A report to open. You can specify an XtraReport instance or CachedReportSource instance for large documents.

Remarks

Assign an XtraReport instance (or CachedReportSource instance for large documents) to the Report property to open a report.

The following code opens the TestReport report:

@using DevExpress.XtraReports.UI;

<DxReportViewer @ref="reportViewer" Report="reportToOpen"></DxReportViewer>

@code { 
    DxReportViewer reportViewer;
    XtraReport reportToOpen;

    // ...
    reportToOpen = new TestReport();
    // ...

}
See Also