Skip to main content
.NET Framework 4.5.2+

PredefinedReportsUpdater Class

A ModuleUpdater descendant intended to register XtraReport objects created at design time for the use with the Reports V2 Module.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v22.1.dll


public class PredefinedReportsUpdater :


To register a predefined XtraReport, override the ModuleBase.GetModuleUpdaters method, instantiate the PredefinedReportsUpdater and add a report via the PredefinedReportsUpdater.AddPredefinedReport method. Then, add the PredefinedReportsUpdater instance to the result array of the AddPredefinedReport method.

public override IEnumerable<ModuleUpdater> GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB) {
    PredefinedReportsUpdater predefinedReportsUpdater = new PredefinedReportsUpdater(Application, objectSpace, versionFromDB);
    predefinedReportsUpdater.AddPredefinedReport<XtraReport1>("Contacts Report", typeof(Contact));
    return new ModuleUpdater[] { predefinedReportsUpdater };


By default, each new PredefinedReportsUpdater instance removes predefined reports that are not registered within this instance. If you implement your reports in several modules and need to create multiple PredefinedReportsUpdater objects in a single application, set the PredefinedReportsUpdater.UseMultipleUpdaters property of each updater to true.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PredefinedReportsUpdater class.


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