以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何引用WIA  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=60096)

--  作者:pcxjxjhkw
--  发布时间:2014/11/18 11:39:00
--  [求助]如何引用WIA
在vs中引用是:using WIA; 

1.在狐表如何引用WIA?
2.WIA有哪些属性和方法?


请教大家?谢谢

--  作者:有点甜
--  发布时间:2014/11/18 11:48:00
--  

 对你无语了。

 

 要跟你说多少次?

 

 1、在vs里面添加控件,在debug得到inter.xxx.dll,然后在foxtable里面引用啊

 

 2、自己百度 http://www.baidu.com/s?ie=utf-8&f=3&rsv_bp=1&tn=monline_4_dg&wd=c%23%20WIA%20&rsv_pq=92bb088f00003a9d&rsv_t=9799e0AD9AsdJwf8VkYIWe%2FiWfkL8bKUOpUKlUIz20pq37zOh0DHojHH7WKtFBnwhlVC&rsv_enter=1&inputT=3014&rsv_sug3=41&rsv_sug4=4183&rsv_sug1=10&rsv_sug2=0&rsp=0&rsv_sug=2

 


--  作者:pcxjxjhkw
--  发布时间:2014/11/18 14:50:00
--  
老师,这些都做了。Dll也引用了,vs中的代码无法套用在狐表中呀。但在狐表中如何写代码?如 dim s as ?,   s.?等
--  作者:有点甜
--  发布时间:2014/11/18 14:51:00
--  

 c# 转 vb.net 工具

 

 http://www.developerfusion.com/tools/convert/csharp-to-vb/

 


--  作者:pcxjxjhkw
--  发布时间:2014/11/19 11:57:00
--  
Dim imageFile As Image = Nothing
Dim cdc As  New WIA.CommonDialogClass()

Try
    imageFile = cdc.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WIA.WiaImageIntent.TextIntent, WIA.WiaImageBias.MaximizeQuality, "{00000000-0000-0000-0000-000000000000}", True, True, _
    False)
Catch generatedExceptionName As System.Runtime.InteropServices.COMException
    imageFile = Nothing

End Try

引用wia,运行上面代码出现如下错误?求教老师们

图片点击可在新窗口打开查看此主题相关图片如下:qq截图20141119115746.png
图片点击可在新窗口打开查看



--  作者:有点甜
--  发布时间:2014/11/19 12:01:00
--  
Dim imageFile As WIA.ImageFile