Skip to main content

TdxComponentPrinter.SaveToIniFile(string) Method

Saves the component printer’s format settings to an INI file.

Declaration

procedure SaveToIniFile(const AFileName: string); overload;

Parameters

Name Type
AFileName string

Remarks

The first overloaded variant of this method creates an INI file with the name, specified by the AFileName parameter, and saves settings to this INI file, within the section, labeled by the component printer’s name. If the specified file exists, it’s overwritten. You can specify the full path to the file or paths relative to an application’s starting folder.

The second overloaded variant of this method saves the component printer’s settings within 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 SaveToRegistry method, which pass the default parameter values. By default, only the component printer’s format settings are saved. You can override the SaveToIniFile method in TdxComponentPrinter descendants to save any additional data.

The first overloaded variant of the SaveToIniFile method is called automatically when the component printer’s settings are stored to 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 load the component printer’s settings from an INI file, call the LoadFromIniFile method.

See Also