Gets information about the available TWAIN Data Sources.
public [Leadtools.Twain.TwainSourceInformation[]](twainsourceinformation.html) QuerySourceInformation()
Public Function QuerySourceInformation() As Leadtools.Twain.TwainSourceInformation()
public:
Leadtools.Twain.array<TwainSourceInformation>^ QuerySourceInformation();
For more information, refer to Managing the TWAIN Source.
Imports Leadtools
Imports Leadtools.Twain
Public Sub QuerySourceInformationExample(ByVal parent As IntPtr)
Dim buffer As String
Dim session As TwainSession = New TwainSession()
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None)
Dim srcInfo As TwainSourceInformation() = session.QuerySourceInformation()
Dim i As Integer = 0
Do While i < srcInfo.Length
buffer = String.Format("Source Name = {0}" & Constants.vbLf & "Product Family Name = {1}" & Constants.vbLf & _
"Manufacturer Name = {2}" & Constants.vbLf & "Twain source supported version = {3}" & _
Constants.vbLf, srcInfo(i).Name, srcInfo(i).ProductFamily, srcInfo(i).Manufacturer, _
srcInfo(i).TwainSourceVersion)
MessageBox.Show(buffer)
i += 1
Loop
session.Shutdown()
End Sub
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();
}
Products |
Support |
Feedback: QuerySourceInformation Method - Leadtools.Twain |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.