Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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