Skip to main content

TdxPSCustomPreviewWindow.LoadFromRegistry(string) Method

Loads the Print Preview window’s settings from a specified registry path.

Declaration

procedure LoadFromRegistry(const APath: string);

Parameters

Name Type
APath string

Remarks

This method creates a TRegistryIniFile object, calls the second overloaded variant of the LoadFromIniFile 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 loaded by default and how you can load additional data.

The LoadFromRegistry method is called automatically when the Print Preview window’s settings are restored from 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 load the Print Preview window’s settings using the LoadFromRegistry method within a component printer’s OnBeforePreview event handler.

To save the Print Preview window’s settings to the registry, call the SaveToRegistry method.

Note

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

See Also