←Select platform

QuerySourceInformation Method

Summary
Gets information about the available TWAIN Data Sources.

Syntax
C#
C++/CLI
Python
public TwainSourceInformation[] QuerySourceInformation() 
public: 
array<TwainSourceInformation>^ QuerySourceInformation();  
def QuerySourceInformation(self): 
Remarks

For more information, refer to Managing the TWAIN Source.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void QuerySourceInformationExample(IntPtr parent) 
{ 
   string buffer; 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   TwainSourceInformation[] srcInfo = session.QuerySourceInformation(); 
 
   for (int i = 0; i < srcInfo.Length; i++) 
   { 
      buffer = String.Format("Source Name = {0}\nProduct Family Name = {1}\nManufacturer Name = {2}\nTwain source supported version = {3}\n", 
         srcInfo[i].Name, srcInfo[i].ProductFamily, srcInfo[i].Manufacturer, srcInfo[i].TwainSourceVersion); 
 
      MessageBox.Show(buffer); 
   } 
   session.Shutdown(); 
} 
Requirements

Target Platforms

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

Leadtools.Twain Assembly

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