Skip to main content

ExportOptions.SaveToRegistry(String) Method

Saves the current export options to the registry.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public void SaveToRegistry(
    string path


Name Type Description
path String

A String value specifying the registry path in which to save the export options.


The SaveToRegistry method saves the values of all the ExportOptions‘s properties to the registry. Then, to restore the export options from the registry, use the ExportOptions.RestoreFromRegistry method.

The path parameter contains the registry key. You are allowed to define whole and partial registry keys. For instance, if you define a partial key, “Software\MyCompany\MyTool", the full path will be as follows: “HKEY_CURRENT_USER\Software\MyCompany\MyTool". If you wish to store export options in another root key, you should define the entire path, for instance: “HKEY_LOCAL_MACHINE\Software\MyCompany\MyTool".

See Also