Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IReportProvider.GetReport(String, ReportProviderContext) Method

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

Namespace: DevExpress.XtraReports.Services

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

XtraReport GetReport(
    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
XtraReport

A report object.

#Remarks

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

To create a service that obtains a report based on its ID, register a custom class that implements the IReportProvider interface.

See Also