Skip to main content
.NET 6.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.v24.1.dll

Declaration

public class PredefinedReportsUpdater :
    ModuleUpdater

Remarks

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 };
}

Note

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.

Inheritance

Object
ModuleUpdater
PredefinedReportsUpdater
See Also