ConfigurationSegment object

This method uses the KeyValue property.

This object represents a group of related settings in a ReadSoft Invoices INI file.

Each group, or segment (or section), of the INI file is denoted by a heading enclosed in brackets, such as [Directory]. The heading is followed by the settings and their values.

For example, the Eilocal.ini file might look something like this:

Directory]

GlobalPath=C:\Program Files\ReadSoft\INVOICES

Programs=C:\Program Files\ReadSoft\INVOICES\Bin

LogFile=C:\Program Files\ReadSoft\INVOICES\Log

Images=C:\Program Files\ReadSoft\INVOICES\Images

TransferFiles=C:\Program Files\ReadSoft\INVOICES\Transfer

BatchPaperDir=C:\Program Files\ReadSoft\INVOICES\Bin

FormatDLL=

ExternalDLLs=

StatLogPath=C:\Program Files\ReadSoft\INVOICES\Stat

EventMapDir=C:\Program Files\ReadSoft\INVOICES\Evmap

[Events]

UseEvents=Y

;  Y = yes, fire events; N = no, don't fire events

[Interpret]

SoftwareDeskew=1

;BlackBorderRemoval=1

;  0=off, 1=removes black borders of every scanned page

;IdentifyTime=10 

;  Number of seconds before giving up identification of invoice

The example above contains three segments, [Directory], [Events], and [Interpret]. In this case, the [Directory] segment includes all of the settings from the [Directory] heading to the next segment, [Events]. The [Events] segment includes all of the settings from the [Events] heading to the next segment, and so on. The value for each setting can be set or returned using the KeyValue property.

A Configuration object's Segment property returns the ConfigurationSegment object based on the name of the segment/section of a ReadSoft Invoices INI file.

Related topic

Configuration object