SetAttribute(szParameter As String, szValue As String) As Integer

FormDef object

With this method you can set a number of properties on the form definition.

Parameters

szParameter

szValue

Description

"ROTATE1"

Valid values: "90", "180", "270"

Rotate the front page.

"ROTATE2"

Valid values: "90", "180", "270"

Rotate the back page.

"DPI"

Example: "300"

Specify the DPI (image resolution) of the form definition. All values that the connected scanner supports are valid values for the szValue parameter.

"BRIGHTNESS"

"CONTRAST"

Example: "25"

Example: "60"

These set the light and contrast levels of the form definition. All values that the connected scanner supports are valid values for szValue.

Return value

The return value is 0 if the property was successfully set; otherwise the return value is a negative number.

Note: Only for advanced users.

SaveScannerSettings

ReplaceFormDefScannerSettings

The FormDef object