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

TdxComponentPrinter.LoadFromIniFile(string) Method

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

#Declaration

Delphi
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