0

INGGRIS
How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help me sir

5
Contributors
20
Replies
66
Views
1 Month
Discussion Span
Last Post by rproffitt
Featured Replies
  • 1

    The scanner manufacturer may have some open source code to use to write your own scanning apps. They may be in something like C++ using an API like Qt, but you should be able to adapt that to VB. It is the interfaces to the scanner that are critical here, … Read More

1

Do you mean how to input scanned bar codes? If yes, see for example: here

Votes + Comments
3 men walk into a bar, the 4th man ducks.
0

English
Small world. I have apps that are bar code scanner compatible. The button is on the scanner and not n the app.

So far not one client has asked for the button to be in the app.

0

I mean a document or paper scanner instead of a barcode sir

Yes the scan button is always on the scanner, but this is for my thesis sir, my lecturer asked to design a digital document scanner application using visual basic ,, when the button scan in visual basic on press scanner on and scanned the document .. can you help me sir?

Edited by Obbie_1

0

@Obbie

Scanners are all over the map about grabbing a scan. So for each scanner you might have to re-write and sometimes call a model incompatible with your app.

Now if you were on Linux I'd point you to SANE.

1

The scanner manufacturer may have some open source code to use to write your own scanning apps. They may be in something like C++ using an API like Qt, but you should be able to adapt that to VB. It is the interfaces to the scanner that are critical here, buttons not-withstanding. Those are what you need in order to control the scanner.

Votes + Comments
API and examples by the scanner maker is critical, unless Linux and SANE. By extension Windows is insane.
0

@dear all
Can you help me to show link or program code to connect device scanners to vb, I am in windows, this is for my thesis I do not know anymore how to do

0

@Obbie. I guess I was unclear. For each make and model this may change. So let's try again.

Supply us with a make and model and we'll see if the maker supplied an API or example.

0

Can you explain the twain function in visual basic?

Edited by Obbie_1

0

In the best case, you just only need to look for TWAIN or WIA in Tools>Extensions manager in VS, or looking for these in your project via manage Nuget Packages. You can find some wrappers that can help you.
In then worst case you must look for a dll provided with the device, and make your own wrapper with interop services.

Good luck

0

Here's the deal with TWAIN or WIA. I've seen folk try that and it breaks as the next user has a different make/model scanner.

My view is this area is a mess so you have to pick a scanner and sort out how this one works.

Edited by rproffitt: Clarifying

0

I still do not understand ,, hopefully my thesis finished hehe

0

@Obbie. Why not share the make, model of the scanner? That way folk can comment about how that one works rather than telling you in general terms.

0

I can not give an overview but how it works when the scan button in vb in scanner clicks directly works and the results are stored in the database .. so I hope there is a script to share my scanner to connect to visual basic ... The purpose of my thesis is we No need to press the scan button we just play click on the program vb and scanned the results into the database .. please me sir how to design the program for the scanner connected with visual basic 2010

0

You've asked the question quite a few times and I see good answers about WIA and TWAIN but you seen to be missing the problem. Ready?

There is no one single method that will work with all scanners on vb.net. Until you get your scanner in hand you won't know if you'll be implementing it in WIA, TWAIN or other.

As an example I have a scanner that has no WIA, TWAIN or any other programming interface. It's pretty nice in that it shows up as a drive letter and when you press the button on the scanner it scans and the old scan in that file vanishes and a new file with a new filename shows up.

To press the button on this one I would have to make a ROBOT to press the button.

0

Sorry i still do not understand ,, may be what i mean is how to implement the program in vb when scan button in click scan result directly stored in the database?

0

@Obbie. You have yet to break your design down to steps. For example you ask how to press the button and folk have replied it depends on the make and model of the scanner. You're stuck on the first step.

I shared a scanner I own has no published way to press the button and a possible robotic button pusher and here you are again asking for what appears to be the same question up top.

Until you supply a make, model scanner no one can answer how to push its button. But even then folk might not tell you. Why? You don't seem to be working the problem. You seem to want the code.

There is no code. You must write that after you see if your scanner supports such a button press.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.