ReportGalleryDirectoryExtension Class

Provides the functionality to save and load the Report Gallery in a file system.

Namespace: DevExpress.XtraReports.Extensions

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public class ReportGalleryDirectoryExtension :
    ReportGalleryExtension
Public Class ReportGalleryDirectoryExtension
    Inherits ReportGalleryExtension

The ReportGalleryDirectoryExtension class is inherited from the abstract ReportGalleryExtension class and is intended to manage persisting Report Gallery templates in a file system. By default, these templates are stored in the %localappdata%\Developer Express Inc\XtraReports Suite\ReportGallery.xml file.

To provide a custom file storage, you can create an instance of the ReportGalleryDirectoryExtension class with a required path passed as a parameter, and register this instance using the static ReportGalleryExtension.RegisterExtensionGlobal method. The following code snippet demonstrates how to specify the path to the directory with the application's executable file.

using System.IO;
using DevExpress.XtraReports.Extensions;

// ...
string path = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "ReportGallery.xml");
ReportGalleryExtension.RegisterExtensionGlobal(new ReportGalleryDirectoryExtension(path));

For information on using the Report Gallery, refer to the Report Gallery document.

Inheritance

Object
ReportGalleryExtension
ReportGalleryDirectoryExtension

See Also