Skip to main content
All docs
V25.1
  • DxReportViewer.Report Property

    Specifies the report to open.

    Namespace: DevExpress.Blazor.Reporting

    Assembly: DevExpress.Blazor.Reporting.v25.1.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