WIAScanner类仅在平板扫描。设备属性为空...有什么问题?

时间:2012-02-26 19:27:49

标签: c# multithreading wia thread-synchronization

我正在使用来自http://miljenkobarbir.com/using-a-scanner-without-dialogs-in-net/的现有课程 它根本不起作用。当应该从文档进纸器扫描时,它会从平板扫描。唯一有效的是它检测到我的设备是无线的,但设备属性为空。没有异常被抛出。

P.S我从另一个线程调用Scan方法而不是UI线程,但我使用了如下锁定

List<Image> images = null;
lock(this)
{
    images = WIAScanner.Scan("deviceID"); // This gets called but does not return back to control
}

0 个答案:

没有答案