Skip to main content
All docs
V25.2
  • IReportProviderAsync.GetReportAsync(String, ReportProviderContext) Method

    Returns a report object based on the specified report ID and context.

    Namespace: DevExpress.XtraReports.Services

    Assembly: DevExpress.XtraReports.v25.2.dll

    NuGet Package: DevExpress.Reporting.Core

    Declaration

    Task<XtraReport> GetReportAsync(
        string id,
        ReportProviderContext context
    )

    Parameters

    Name Type Description
    id String

    A string that specifies the report ID (report URL).

    context ReportProviderContext

    A report context that identifies the subreport’s root report.

    Returns

    Type Description
    Task<XtraReport>

    A task that returns an XtraReport object.

    Remarks

    The GetReportAsync method contains a custom code that uses the specified report ID to retrieve or create a report object.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetReportAsync(String, ReportProviderContext) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also