Skip to main content

TdxPSCustomPreviewWindow.SaveToRegistry(string) Method

Stores the Print Preview window’s settings to a specified registry path.

Declaration

procedure SaveToRegistry(const APath: string);

Parameters

Name Type
APath string

Remarks

This method creates a TRegistryIniFile object, calls the second overloaded variant of the SaveToIniFile method, and passes this object and the APath registry path as parameters. Refer to the description of this method and its overridden version to learn about the window attributes that are stored by default and how you can extend them.

The SaveToRegistry method is called automatically when the Print Preview window’s settings are stored to the registry with ExpressPrinting System settings. To enable this mode, assign dxstRegistry to the OptionsStoring.StorageType property of the currently active engine controller and designate the destination registry path via the engine controller’s OptionsStoring.RegistryPath property. If this mode is disabled, you can manually save the Print Preview window’s settings using the SaveToRegistry method within a component printer’s OnAfterPreview event handler.

To load the Print Preview window’s settings from the registry, call the LoadFromRegistry method.

Note

Calling the SaveToRegistry method has no effect if the dxPSEngine.SaveFormsPosition option is set to False.

See Also