Determining the type of scanner driver (twain or wia)

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
liauchukivan
Posts: 1
Joined: Thu Mar 23, 2023 12:25 pm

Determining the type of scanner driver (twain or wia)

Post by liauchukivan »

Hi everybody!
I need help!!!
I get the scanner options. How can I explicitly determine that the device is twain or wia?
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Determining the type of scanner driver (twain or wia)

Post by Alex »

Hi,

If you are using VintaSoft TWAIN .NET SDK in .NET application and you want to get a value indicating whether device uses WIA driver, you can use the DeviceInfo.IsWIA property:

Code: Select all

Console.WriteLine(string.Format("Is WIA device: {0}", device.Info.IsWIA));
If you are using VintaSoft Web TWAIN service in JavaScript application and you want to get a value indicating whether device uses WIA driver, you can use the WebTwainDeviceJS.get_IsWIA function:

Code: Select all

console.log(device.get_IsWIA());
Best regards, Alexander
Post Reply