[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

"Acquire" image from scanner...

I want to be able to start the scanner-software from my app.  How do I do it?
I also want to place the scanned image in my app.
Please give me some hints here...

I use Delphi Developer 2.0..
Thanx!

Erik N.
0
Erik N
Asked:
Erik N
1 Solution
 
interCommented:
Dear Erik N.,

I want to repeat my comment to one of the previous questions from
gipa:


This might be a hard question upon what you want to do. If you want just to start the scanning application (e.g. deskscan.exe for HP ScanJet clone) it is not complicated and you can do it by
WinExec; However if you want to start deskscan and get the scanned data you'd better use TWAIN which is a uniform interface to the scanning devices(by this way you can use any TWAIN compatible scanner device). Calling the twain to perform data transfer task is not easy. Another way (only if the scanner vendor provides this kind of interface) is using OLE. If your scanning software register itself as an OLE server, you can write an OLE client application which connects it. An when, from the scanning application 'update' is selected, you ole client control receives the data. The last way I know is to use the third parth component (for example ImageGear OCX from accusoft is excellent) but it requires that you pay for it.


Igor
0
 
ZifNabCommented:
Here is a free example of calling the twain-api :

 ftp://delphiexchange.com/pub/free/deztwain.zip

Good luck,
Zif.
0
 
Erik NAuthor Commented:
Dear Igor.
I will not try to "Get" the scanned data from a scanner-device, since it seems to be hard to accomplish. I will instead make it possible to start any scanner-program, using Winexec or Create- process..
Thanks for your comment, Igor...

Thank you also to ZifNab....

Erik N.

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now