.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.v20.1.dll


public class PredefinedReportsUpdater :
Public Class PredefinedReportsUpdater
    Inherits ModuleUpdater


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.


See Also