简体   繁体   English

用于Delphi的TWAIN扫描组件

[英]TWAIN scanning components for Delphi

I need to add TWAIN scanning to an Delphi application and am having trouble locating an off-the-shelf component to do so. 我需要将TWAIN扫描添加到Delphi应用程序中,并且无法找到现成的组件来执行此操作。

I downloaded TDelphiTwain but, when used in D2010 on Windows Vista, it does not appear to recognize any Twain sources on my system. 我下载了TDelphiTwain,但是当在Windows Vista上的D2010中使用时,它似乎无法识别我系统上的任何Twain源。 I also tried the trial version of Twain Toolkit for Delphi from MCM which has the advantage of being currently updated (DelphiTwain's last update was 2004), but the Twain Toolkit will not even compile on my system (I think some of the DCUs are out of date). 我还尝试了MCM的Twain Toolkit for Delphi的试用版,它具有当前更新的优势(DelphiTwain的最新更新是2004年),但是Twain Toolkit甚至不能在我的系统上编译(我认为一些DCU不在日期)。

Can anyone suggest a simple method of getting TWAIN scanning into my Delphi application? 任何人都可以建议一种简单的方法将TWAIN扫描到我的Delphi应用程序中吗?

UPDATE: Using vcldeveloper's update to DelphiTwain (see below) I was able to get this working. 更新:使用vcldeveloper对DelphiTwain的更新(见下文)我能够实现这一点。 Also, I also discovered that Envision Image Library supports Twain scanning as well as assisting in handling multi-page TIFFs, and has been updated for compatibility with D2010. 此外,我还发现Envision Image Library支持Twain扫描以及协助处理多页TIFF,并且已经更新以与D2010兼容。

Late Breaking UPDATE VCLDeveloper's code, below, works fine. 最新的更新 VCLDeveloper的代码,下面,工作正常。 However, I settled on Envision library which includes the ability to easily create multi-page TIFF files. 但是,我选择了Envision库,它包括轻松创建多页TIFF文件的功能。 I got the Envision scanning, including multi-page file handling, implemented in a few hours. 我在几个小时内完成了Envision扫描,包括多页文件处理。

I changed DelphiTWAIN to work with Delphi 2009 and 2010. You can download the source code from here: http://www.kluug.net/delphitwain.php 我将DelphiTWAIN更改为与Delphi 2009和2010一起使用。您可以从这里下载源代码: http ://www.kluug.ne​​t/delphitwain.php

Additional links are here: http://torry.net/pages.php?id=507 其他链接在这里: http//torry.net/pages.php?id = 507
and here: http://www.delphipraxis.net/1179589-post3.html 在这里: http//www.delphipraxis.net/1179589-post3.html

Another graphic library that also supports TWAIN scanning is ImageEn which also can save the scanned documents as PDF (as well as numerous graphical formats). 另一个也支持TWAIN扫描的图形库是ImageEn ,它还可以将扫描的文档保存为PDF(以及多种图形格式)。 That feature alone sold me on that product years ago. 几年前,这个功能一个人就把这个产品卖给了我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM