←Select platform

ReturnCode Property

Summary
Gets or sets the return code for retrieving the extended image information.

Syntax
C#
C++/CLI
Python
public TwainReturnCode ReturnCode { get; set; } 
public: 
property TwainReturnCode ReturnCode { 
   TwainReturnCode get(); 
   void set (    TwainReturnCode ); 
} 
ReturnCode # get and set (TwainInformation) 

Property Value

The return code for retrieving the extended image information.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void GetItemExample(IntPtr parent) 
{ 
   try 
   { 
      TwainSession session = new TwainSession(); 
      session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
      TwainExtraImageInformation twainExtImageInfo = new TwainExtraImageInformation(1); 
 
      twainExtImageInfo.GetInformation(0).InfoId = TwainExtendedImage.BarcodeText; 
      twainExtImageInfo.GetInformation(0).ItemType = TwainItemType.Uint32; 
 
      session.UpdateExtraImageInformation(twainExtImageInfo); 
 
      if (twainExtImageInfo.GetInformation(0).ReturnCode == TwainReturnCode.Success) 
      { 
         for (int i = 0; i < twainExtImageInfo.GetInformation(0).Count; i++) 
         { 
            uint item = (uint)twainExtImageInfo.GetInformation(0).GetItem(i, 0); 
            //Do more processing on the item value 
         } 
      } 
 
      session.Shutdown(); 
   } 
   catch (Exception ex) 
   { 
      MessageBox.Show(ex.Message); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.