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
NuGet Package: DevExpress.ExpressApp.ReportsV2
#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 Predefined