Skip to main content

TdxComponentPrinter.LoadFromIniFile(string) Method

Loads the component printer’s format settings from an INI file.

Declaration

procedure LoadFromIniFile(const AFileName: string); overload;

Parameters

Name Type
AFileName string

Remarks

The first overloaded variant of this method loads settings from an INI file specified by the AFileName parameter. Settings are loaded from the section, labeled by the component printer’s name. You can specify the full path to the file or a path relative to an application’s starting folder.

The second overloaded variant of this method loads the component printer’s settings from a specified section of a certain INI file that is currently open. AIniFile and ASection specify the INI file and section, respectively. This overloaded variant is called internally by the first overloaded variant and the LoadFromRegistry method, which pass the default parameter values. By default, only the component printer’s format settings are loaded. You can override the LoadFromIniFile method in TdxComponentPrinter descendants to load any additional data.

The first overloaded variant of the LoadFromIniFile method is called automatically when the component printer’s settings are restored from an INI file with ExpressPrinting System settings. To enable this mode, assign dxstIniFile to the OptionsStoring.StorageType property of the currently active engine controller and designate the destination file via the engine controller’s OptionsStoring.IniFileName property.

To save the component printer’s settings to an INI file, call the SaveToIniFile method.

See Also