ReportDesignExtension.RegisterExtension(ReportDesignExtension, String) Method
Registers the custom report design extension to serialize custom parameter types.
Namespace: DevExpress.XtraReports.Extensions
Assembly: DevExpress.XtraReports.v23.1.Extensions.dll
NuGet Package: DevExpress.Win.Reporting
Declaration
public static void RegisterExtension(
ReportDesignExtension extension,
string contextName
)
Parameters
Name | Type | Description |
---|---|---|
extension | ReportDesignExtension | A ReportDesignExtension object. |
contextName | String | A String value, identifying the context. |
Remarks
You can use the RegisterExtension property to serialize custom report parameters along with a report’s definition.
To provide parameters of custom types to your report, you should create a custom report design extension inherited from the ReportDesignExtension class.
Then, register the extension (using the RegisterExtension method) and associate the report with the custom extension (using the ReportDesignExtension.AssociateReportWithExtension method).
See the following tutorials to learn how to register custom parameter types in reporting applications created for different platforms:
- Register Custom Report Parameter Types (in WinForms Applications)
- Register Custom Report Parameter Types (in WPF Applications)
- Register Custom Report Parameter Types (in Web Applications)