Skip to main content

TdxComponentPrinter.SaveToRegistry(string) Method

Saves the component printer’s format settings to the registry.

Declaration

procedure SaveToRegistry(const APath: string);

Parameters

Name Type
APath string

Remarks

Call the SaveToRegistry method to save component printer settings to the registry path specified by the APath parameter. You can later load these settings from the registry using the LoadFromRegistry method. By default, only the component printer’s format settings are saved. You can override the SaveToIniFile method (which is called internally by the SaveToRegistry method) in TdxComponentPrinter descendants, to save any additional data.

The SaveToRegistry method is called automatically when the component printer’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.

See Also