The requested page is not available for the requested platform. You are viewing the content for Default platform.

StorageOptions.ShouldKeepLoadingFormat Property

Specifies whether to save the opened reports using their original serialization format (CodeDOM or XML).

Namespace: DevExpress.XtraReports.Configuration

Assembly: DevExpress.XtraReports.v19.1.dll


public bool ShouldKeepLoadingFormat { get; set; }
Public Property ShouldKeepLoadingFormat As Boolean

Property Value

Type Description

true, to maintain the original report format; false, to save all reports in XML format.


Once a report class is constructed, it's possible to store its definition (layout and configuration) either to hard disk or to a database, e.g. for later editing of the report, previewing and printing. Report definitions can be saved to REPX files in XML or CodeDOM format.


Reports and report style sheets created in the Report Designer for WinForms are saved to XML by default.

To prevent injecting arbitrary code into a report definition opened in the End-User Report Designer, we strongly recommend that you use the XML serialization for saving reports.

To learn more, see Data Access Security.

The following code illustrates how to enable your end-user reporting application to save reports in CodeDOM format (both newly created reports, and reports restored from XML definitions). These settings do not affect serialization of report style sheets (they are always saved in XML format).

using DevExpress.XtraReports.Configuration;
using System.Windows.Forms;
// ...

public partial class Form1 : Form {
    public Form1() {
        Settings.Default.StorageOptions.SavingFormat = 
        Settings.Default.StorageOptions.ShouldKeepLoadingFormat = false;
See Also