Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPSCustomPreviewWindow.LoadFromRegistry(string) Method

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

#Declaration

Delphi
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