Guide for VB.NET
Core Document Formats
Additional Features
Query Device Abilities

VB.NET TWAIN - How to Query & Set Device Abilities

VB.NET Guide for Querying and Setting TWAIN Device Abilities

VB.NET
Home > .NET Imaging SDK > VB.NET > TWAIN: Query Device Abilities
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

In the process of TWAIN image scanning, do you know about querying and setting the TWAIN device capabilities using VB.NET programming? c# barcode generator library free, open pdf file visual basic 2010, asp.net pdf viewer free, barcode reader vb.net source code, add header and footer in pdf using itextsharp c#, asp.net pdf writer. Below are some common questions on querying and setting the TWAIN device abilities.
Related .net document control helps:
asp.net document viewer open source: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
c# asp.net image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net pdf viewer using c#: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
  • What is the purpose of querying and setting the TWAIN device capabilities in VB.NET?
  • How to query and set abilities of target TWAIN device through VB.NET programming?
  • Where to obtain VB.NET sample code to query and set abilities of target TWAIN device?
  • Why use our VB.NET product to query and set capabilities of the TWAIN device?
We will answer the above questions on querying and setting TWAIN device abilities with VB.NET programming in detail from the following sections. convert csv to pdf c#, vb.net pdf to tiff converter, vb.net excel saveas pdf, pdf compression library c#, how to show page numbers in pdf using itext c#, c# modify pdf metadata, pdf to html vb.net.
Purpose of Querying and Setting TWAIN Device Abilities
The main purpose of querying and setting capabilities of specific TWAIN device is to help you customize your TWAIN image scanning process in VB.NET application. show image asp.net mvc, asp net replace text from pdf javascript, asp net view word document in browser, asp.net pdf writer, mvc pdf viewer, preview pdf in asp.net, asp.net display pdf. With our VB.NET TWAIN Add-On, you are able to know about or even set multiple capabilities supported by the target TWAIN device at fast speed, such as compression modes, frame sizes, resolutions, etc. If you aim at getting a basic TWAIN image scanning process, there is no need for you to know the supportive properties of your source TWAIN device. As a result, you do not need to query and set capabilities of the TWAIN device in VB.NET class.
Detailed Steps
Here is a list of detailed steps for using our VB.NET TWAIN Image Scanning Add-On to query and set properties of target TWAIN device.
  1. In the first place, you may need to open connection to the TWAIN device through VB.NET programming in order to query and set properties of the device.
  2. Then, you can start querying in VB.NET and see if your wanted image scanning properties are supported by the TWAIN device.
  3. Next, if you find your wanted image scanning properties are supportive, you can set these properties based in your needs. After VB.NET image acquiring process is completed, you may need to close the connection to the TWAIN device.
  4. If your wanted image scanning properties are not supportive, you may directly disconnect to the TWAIN device.
VB.NET Sample Code
As there are various properties of a TWAIN device, we just give you the VB.NET sample code to find out whether the TWAIN device supports file transfer and what file formats and compression modes are supported by the TWAIN device. In the VB.NET sample code, device.GetSupportedTransferModes() method is used to check what transfer modes are supported by source TWAIN device. And device.GetSupportedImageFormats() method is used to find out supportive file formats to which scanned TWAIN image object can be saved.
Note: Our VB.NET TWAIN Add-On enables you to save scanned image object not only to file formats supported by the source TWAIN device, but also to image formats supported by our VB.NET Imaging SDK, such as BMP, TIFF, PNG and so on.
Public Sub QueryDeviceCapabilities(device As Device)
' Open a connection to the device.
device.Open()
device.TransferMode = TwainTransferMode.TWSX_NATIVE

' See if the device supports file transfer.
Dim methods As TwainTransferMode() = device.GetSupportedTransferModes()
For Each method As TwainTransferMode In methods
If method = TwainTransferMode.TWSX_FILE2 Then
' Use TWSX_FILE2 when possible.
device.TwainTransferMode = method
Exit For
End If

If method = TwainTransferMethod.TWSX_FILE Then
device.TransferMethod = method
End If
Next

' If it's not supported, tell the application to stop.
If device.TransferMode = TwainTransferMode.TWSX_NATIVE Then
' Close the connection.
device.Close()
Console.WriteLine("File Transfer not supported")
Return
End If
Reasons for Selecting Our VB.NET TWAIN Add-On

Simple Operation

All functions of our VB.NET TWAIN Scanning Add-On are integrated into a small-size dll (RasterEdge.Imaging.TWAIN.dll). You simply need to locate this dll to your VB.NET imaging project as reference and you can use this product then.

Unique Performance

This VB.NET TWAIN Add-On empowers you to integrate advanced image scanning features that are not supported by source TWAIN device and cannot be realized by other market TWAIN products.

Technical Support

We have a technical team that is composed of professional programmers and they can give you in-time technical support if you have any problem of querying and setting TWAIN device abilities with our .NET TWAIN Image Scanning Add-On in VB.NET.


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2024 Raster Edge.com