ImageGear .NET v25.1 - Updated
setTagInteger Method

ImageGear.Web.Isis Library > ImageGear.Web.Isis Namespace > ImGearIsisScanner class : setTagInteger Method
Sets the value of an ISIS tag of data type Integer.
Syntax
ASP.NET Ajax Javascript (Specification) 
function setTagInteger( 
   tagID : number(Integer),
   tagInteger : number(Integer),
   index : number(Integer),
   callback : function
) : ImGearIsisOperationStatus;
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfImGearIsisScanner.setTagInteger(number(Integer),number(Integer),number(Integer),function);

Parameters

tagID
The ID of the tag.
tagInteger
The integer value to set the tag to.
index
The index to use, for tags that contain multiple values. If the tag contains only a single value, this must be 0.
callback
Callback which is called when the tag is set.

Return Value

Example

The JavaScript code below demonstrates how to set the scanner ISIS scan type tag to an integer value of 0 (which represents automatic scan type for some scanners). You can use the getTag method to get the tag type and list or range of supported values for a tag.

function setTagCallback(status) {
    if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) {
        alert(status.get_statusMessage());
    }
}

scannerSession.get_scanner().setTagInteger(ImageGear.Web.Isis.ImGearIsisTag.ScanType, 0, 0, setTagCallback);
Remarks

This is an asynchronous method.

To set the values of multiple tags, it is more efficient to use setAllTags.

The scanner must be set before calling this method.

For more information on ISIS tags, refer to the ISIS Tags topic.

See Also

Reference

ImGearIsisScanner class
ImGearIsisScanner Members