Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 带有ADF的wia扫描仪不公开属性3078(SheetFeederRegistration)_.net_Scanning_Wia - Fatal编程技术网

.net 带有ADF的wia扫描仪不公开属性3078(SheetFeederRegistration)

.net 带有ADF的wia扫描仪不公开属性3078(SheetFeederRegistration),.net,scanning,wia,.net,Scanning,Wia,我有一个带ADF的兄弟扫描仪。ADF在win fax和scan中工作得很好,但当我通过WIA访问它时,我尝试将馈线设置为1。问题是,在遍历属性id时,它永远不会到达3078 下面是它确实公开的ID列表 4098,4099,4101,4102,4103,4104,4105,4106,4107,4108,4109, 4110,4111,4112,4113,4114,4116,4118,4120,4123,6146,6147, 6148,6149,6150,6151,6152,6153,6154,61

我有一个带ADF的兄弟扫描仪。ADF在win fax和scan中工作得很好,但当我通过WIA访问它时,我尝试将馈线设置为1。问题是,在遍历属性id时,它永远不会到达3078

下面是它确实公开的ID列表

4098,4099,4101,4102,4103,4104,4105,4106,4107,4108,4109,
4110,4111,4112,4113,4114,4116,4118,4120,4123,6146,6147,
6148,6149,6150,6151,6152,6153,6154,6155,6156,6157,6159,6161
这是我的密码

Dim cl = New CommonDialog
    Dim scanner = cl.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, False, False).Items(1)
    Dim ids = (From x As WIA.Property In scanner.Properties Select x.PropertyID).ToList
    ids.Sort()
    MessageBox.Show(ids.Joined)
    For Each prp As WIA.Property In scanner.Properties
        Dim iprp = CType(prp, IProperty)
        Select Case prp.PropertyID
            Case 3078
                MessageBox.Show("going to set " & prp.PropertyID)
                iprp.let_Value(1)
        End Select
    Next
有什么想法吗


我对WIA没有兴趣,如果有更好的库,我会感兴趣。

答案是这个优秀的库:

工作起来很有魅力

问题在于:

Dim scanner = cl.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, False, False).Items(1);
您试图访问的财产位于此处:

cl.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, False, False);

如果您的应用程序主要用于扫描仪,我建议您使用TWAIN。吐温网