VB 里 扫描文件 很麻烦吗? 我们有一个软件项目, VB + access 要求 扫描 纸质 文档到 数据库 我的思路是: 用VB 扫描到 程序文件夹下,然后在 数据库里 把 路径和文件名记录下来, 显示的时候 调用就行了。 公司的 程序员说 实现起来 非常麻烦,不愿意做。 想请教大家, 麻烦吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 思路:1、编程实现扫描,生成BMP文件保存在硬盘上2、将保存好的文件通过Stream对象保存到数据库中这是一个使用ImgScan控件编写的控制扫描仪的程序,通过它你可以实现扫描并保存图片到硬盘。Option ExplicitPrivate Function ScanTheImage(ByRef imgScanner As ImgScan, ByVal TheImageFile As String) As Boolean Dim ReturnValue As Long Dim TestString As String If imgScanner.ScannerAvailable Then ReturnValue = imgScanner.OpenScanner() imgScanner.PageOption = 2 imgScanner.FileType = 1 imgScanner.PageType = 1 imgScanner.CompressionType = 4 imgScanner.CompressionInfo = 1 imgScanner.ScanTo = 2 '保存为文件 imgScanner.Image = TheImageFile '图像将被保存 imgScanner.ShowSetupBeforeScan = True imgScanner.MultiPage = True ReturnValue = imgScanner.StartScan() DoEvents imgScanner.CloseScanner TestString = Dir(TheImageFile) If TestString <> "" Then ScanTheImage = True End If Else MsgBox "扫描设备尚不可用" Exit Function End IfEnd FunctionPrivate Sub btnScanRun_Click() Dim bolP As Boolean bolP = ScanTheImage(imgScanner, App.Path & "\1.bmp") End Sub这是通过Stream对象保存图片到数据库的代码 求助,vb中登录界面的问题 毕业设计急求 用vb实现鼠标触发事件 百分跪求MetaDraw_3_1控件的中文帮助或使用说明 我想生成体育彩票走势图这样的东西,该用什么做?该怎么做? 请教问题! 定义出错 (100分)请教关于EXCEL的问题 文件读写方面的问题,在线等待 如何知道内存的使用情况 数据库环境的问题,在线等候~~谢 简单问题! 共享一个能保存多帧GIF的代码。 我想做个vb6环境扩展程序,监视vb代码的变化,自动添加注释,不知道哪个事件可以反映代码变化?
1、编程实现扫描,生成BMP文件保存在硬盘上
2、将保存好的文件通过Stream对象保存到数据库中这是一个使用ImgScan控件编写的控制扫描仪的程序,通过它你可以实现扫描并保存图片到硬盘。Option Explicit
Private Function ScanTheImage(ByRef imgScanner As ImgScan, ByVal TheImageFile As String) As Boolean Dim ReturnValue As Long
Dim TestString As String
If imgScanner.ScannerAvailable Then
ReturnValue = imgScanner.OpenScanner()
imgScanner.PageOption = 2
imgScanner.FileType = 1
imgScanner.PageType = 1
imgScanner.CompressionType = 4
imgScanner.CompressionInfo = 1
imgScanner.ScanTo = 2 '保存为文件
imgScanner.Image = TheImageFile '图像将被保存
imgScanner.ShowSetupBeforeScan = True
imgScanner.MultiPage = True
ReturnValue = imgScanner.StartScan()
DoEvents
imgScanner.CloseScanner
TestString = Dir(TheImageFile)
If TestString <> "" Then
ScanTheImage = True
End If
Else
MsgBox "扫描设备尚不可用"
Exit Function
End If
End FunctionPrivate Sub btnScanRun_Click()
Dim bolP As Boolean
bolP = ScanTheImage(imgScanner, App.Path & "\1.bmp")
End Sub
这是通过Stream对象保存图片到数据库的代码