我正在使用来自http://miljenkobarbir.com/using-a-scanner-without-dialogs-in-net/的现有类 ,它根本不起作用。当它应该从文档进纸器扫描时,它会从平板扫描。唯一有效的是它检测到我的设备是无线的,但设备属性为空。不会抛出异常。
PS我正在从另一个线程而不是UI线程调用Scan方法,但我使用了像下面这样的锁
List<Image> images = null;
lock(this)
{
images = WIAScanner.Scan("deviceID"); // This gets called but does not return back to control
}