Skip to content
GBG Documents & Biometrics Documentation

CDynamicExport library

The CDynamicExport library in ScanWex lets you export the scanned fields to any window. DyamicFieldExtraction also lets you export the scanned fields to any window.

To use the library, connect each scanned field to a specific window and save this configuration. You will be doing this by using a setup dialog from our AcuFill SDK. The AcuFill SDK uses the previously saved data, and exports the fields scanned by it directly to the chosen fields.

The CDynamicExport Library contains the following functions:

Sets up the windows you want the fields to be exported to. When done, save the configuration file for later usage.

Syntax

OpenDynamicConfigDialog (Type As Integer, sDefaultCfgFilename As String) As Integer

Parameters

Parameter Description
[in] Type Indicates the component(s) you are about to configure, such as an ID card or passport. These values are defined in the examples supplied with the AcuFill SDK. You can combine 1 or more values using the | (or) operator. Values: DRIVER_LICENSE | BAR_CODE | PASSPORT | RAW_BARCODE | RAW_OCR | BUSINESS_CARD | CHEQUE | MED
[in] sDefaultCfgFilename String that specifies a filename to open when launching the dialog

Return Values

Value Description
1 Function succeeded
0 Function failed

Use this function after you scanned the document. When the scan is done, this function will take the values in memory and will post it to the configured windows.

Syntax

ExtractDynamicFieldsFromFile (sCfgFilename As String, nUseWideString As Integer, nUseWideString As Integer, nComponentType As Integer, FieldIndex As Integer) As Integer

Parameters

Parameter Description
[in] sCfgFilename String that specifies the configuration file to use in order to extract the scanned values.
[in] nUseWideString If 0 then the fields exported are just regular strings; otherwise wide strings
[in] nComponentType Specifies what will be the extracted component. These values are defined in the examples supplied with the AcuFill SDK. You can combine one or more values using the | (or) operator. If this parameter is 0, all possible sections will be extracted. The default value is 0. Values: DRIVER_LICENSE | BAR_CODE | PASSPORT | RAW_BARCODE | RAW_OCR | BUSINESS_CARD | CHEQUE | MED
[in] FieldIndex Specifies the field to be extracted. If the value of the parameter is -1 (DEFAULT), then all fields in the specified section will be extracted.

Use this function after you scanned the document. When the scan is done, this function will take the values in memory and will post it to the configured windows.

Syntax

ExtractDynamicTextFromFile (sCfgFilename As String, sImgFile As String, type As Integer, nUseWideString As Integer) As Integer

Parameters

Parameter Description
[in] sCfgFilename String that specifies the configuration file to use to extract the scanned values
[in] sImgFile Full path name of the original image
[in] type Instruct the OCR what type of data is written in the image. This value increases the detection accuracy and speeds up the OCR operation. This value can be one of the following values:
[in] nUseWideString If 0 then the fields exported are just regular strings; otherwise use wide strings

Return Values

Value Description
1 Function succeeded in opening the configuration file
0 Function failed; doesn’t guarantee that any field whatsoever was exported to a window

Launches the macro dialog for the purpose of recording keyboard and mouse events

Syntax

OpenMacroRecordDialog (sDefaultMacroFilenameAs String) As Integer

Parameters

Parameter Description
[in] sDefaultMacroFilenameAs String that specifies the configuration macro file

Return Values

Value Description
1 Function succeeded
0 Function failed

Plays a previously recorded macro

Syntax

PlaySavedMacro (sDefaultMacroFilenameAs String) As Integer

Parameters

Parameter Description
[in] sDefaultMacroFilenameAs String that specifies the configuration macro file

Return Values

Value Description
1 Function succeeded
0 Function failed

Returns a bitwise integer that contains the components stored in the configuration file:

DRIVER_LICENSE PASSPORT RAW_OCR CHEQUE
BAR_CODE RAW_BARCODE BUSINESS_CARD MED

The values can be read using the “&” operator.

Syntax

GetDynamicExportNeeded (sDefaultMacroFilenameAs String) As Integer

Parameters

Parameter Description
[in] sDefaultMacroFilenameAs String that specifies the configuration file to use in order to extract the possible values

Return Values

None