Solved

Is it possible to scan a barcode and have an application know which field is intended?

Posted on 2013-06-05
10
524 Views
Last Modified: 2013-06-29
Is it possible to scan a barcode and have an application know which field is intended?
I have a hand-held scanner and lets say that I had 3 different bar codes, would it be possible for me to scan one of the barcodes and the application automatically place the data in the correct field?
I am using VB.NET but will consider C# as well.
 
Thanks!
ps. All hints, ideas and suggestions are welcomed.
0
Comment
Question by:middlefox
  • 4
  • 3
10 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 250 total points
ID: 39223362
Not in and of itself.  If the data is sufficiently different - one barcode is text, one barcode is numeric, one barcode is a date - you might just accept the data and populate the field with some logic.  Another possibility is if the data has a prefix or suffix.

That said, it might make sense to presume the barcodes will be scanned in the same order each time.  A, B, C, then back to A, etc.

Another alternative would be to scan a barcode that tells the application which barcode is coming next.  This wouldn't stop someone from telling the application that "barcode A" is being scanned next, then scanning "barcode B", but you can rarely work around all human error.
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 250 total points
ID: 39223400
Not unless you trapped the barcode entry at a low level before it gets to your application so you could inspect it and decide where it needs to go.  Otherwise it will just go to the currently focused application/control.

See "Distinguishing Barcode Scanners from the Keyboard in WinForms":
http://nicholas.piasecki.name/blog/2009/02/distinguishing-barcode-scanners-from-the-keyboard-in-winforms/
0
 

Author Comment

by:middlefox
ID: 39223590
I am assuming there are ways to write custom code to interpret a scan, but that is the least interesting to me.

I am more interested in having special formatting in the barcode content that helps do more than just put the content into the selected textbox. And the cases I am most interested improving are not our custom apps, they are Epicor. What I am most interested in are conventions that exist that people use out there to solve this kind of problem: scanning multiple fields into multiple text boxes from one barcode in one scan. I believe this is possible with delimiters if the tab order of the text boxes are known… however I am also wondering about solutions that might leverage alt key labeling so that scan order would be irrelevant.

ask your friends if they know.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39223873
"What I am most interested in are conventions that exist that people use out there to solve this kind of problem: scanning multiple fields into multiple text boxes from one barcode in one scan."
There may be solutions, but they're proprietary.  I'm not aware of any barcode convention that both defines the data and where it should be stored.  

I'm sure you could do something like that (my note about prefix/suffix above), but there's no standard for it I'm aware of.  I have no doubt it's possible; you'd just have to do it yourself.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:middlefox
ID: 39264031
I've requested that this question be deleted for the following reason:

no real answers, its sad that these are the "experts" of this site.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39263685
Several - possibly all - viable solutions ("real answers") were offered for your consideration.  That none of them meet your expectations doesn't make them any less valid; they show your expectations to be unrealistic.  

If you come up with a solution to the question you posed - other than one already proposed by an Expert - feel free to share it and enlighten us.

Regards.
0
 

Author Comment

by:middlefox
ID: 39263825
My expectations were very realistic, trying to get points for a non-answer is not realistic. I found real answers elsewhere. Real answers not theoretical ideas, it was obvious that not a single one of the "experts" had ever worked on such an issue. I found several good solutions, with code examples. I already paid to use the "experts" on this site. I am not sharing my findings, let the "experts" on here figure it out.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39264032
I think, if you have a workable solution and can prove it, you could get a refund for the cost of posing the question.  Wouldn't sharing your answer be worth getting your money back?

I've asked a moderator to intercede and give guidance.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to adjust sheet 1 85
Problem to setup 18 92
SCCM 2012 R2 - how to kill program if running, before deployment 4 60
Sharepoint 2013 error 4 48
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now