Back to Devexpress

DxReportViewer.Report Property

xtrareports-devexpress-dot-blazor-dot-reporting-dot-dxreportviewer-0f907744.md

latest1.8 KB
Original Source

DxReportViewer.Report Property

Specifies the report to open.

Namespace : DevExpress.Blazor.Reporting

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

NuGet Package : DevExpress.Blazor.Reporting.Viewer

Declaration

csharp
[Parameter]
public IReport Report { get; set; }
vb
<Parameter>
Public Property Report As IReport

Property Value

TypeDescription
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:

razor
@using DevExpress.XtraReports.UI;

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

@code { 
    DxReportViewer reportViewer;
    XtraReport reportToOpen;

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

}

See Also

DxReportViewer Class

DxReportViewer Members

DevExpress.Blazor.Reporting Namespace