Back to Devexpress

IReportProvider.GetReport(String, ReportProviderContext) Method

xtrareports-devexpress-dot-xtrareports-dot-services-dot-ireportprovider-dot-getreport-x28-system-dot-string-devexpress-dot-xtrareports-dot-services-dot-reportprovidercontext-x29.md

latest2.0 KB
Original Source

IReportProvider.GetReport(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

csharp
XtraReport GetReport(
    string id,
    ReportProviderContext context
)
vb
Function GetReport(
    id As String,
    context As ReportProviderContext
) As XtraReport

Parameters

NameTypeDescription
idString

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

| | context | ReportProviderContext |

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

|

Returns

TypeDescription
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

IReportProvider Interface

IReportProvider Members

DevExpress.XtraReports.Services Namespace