ImageGear.Web.Isis Namespace Client API Library > ImageGear.Web.Isis Namespace > ImGearIsisScanner class : setTagString Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function setTagString( tagID : number(Integer), tagString : string, callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScanner.setTagString(number(Integer),string,function); |
The JavaScript code below demonstrates how to set a scanner ISIS page size tag to a string value. 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().setTagString(ImageGear.Web.Isis.ImGearIsisTag.PageSize, "Letter - 8.5 x 11 in", setTagCallback);
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.