Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Barcoding

Barcoding

Scheduled Pinned Locked Moved C#
csharpasp-netdatabase
10 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ziwez0
    wrote on last edited by
    #1

    Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

    P E D L R 7 Replies Last reply
    0
    • Z ziwez0

      Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      refer : http://www.codeproject.com/info/search.aspx?artkw=bar+code[^]

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      1 Reply Last reply
      0
      • Z ziwez0

        Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

        E Offline
        E Offline
        Enver Maroshi
        wrote on last edited by
        #3

        You can use asp.net. When you scan barcode, it will simple write out barcode and usually give an CR and LF on end. So, you should give focus to barcode field on form, and once user scans code it will write code in that field. All scaners do it the same way, only that you can make in some cases define what to return on end. Also, be aware that you will not know in asp.net when data actually comes from scanner, and not from user. When scanner returnes data, it's just like keyboard strokes, you cant know when this happens. So, barcode field should have focus when you start scanning.

        M 1 Reply Last reply
        0
        • E Enver Maroshi

          You can use asp.net. When you scan barcode, it will simple write out barcode and usually give an CR and LF on end. So, you should give focus to barcode field on form, and once user scans code it will write code in that field. All scaners do it the same way, only that you can make in some cases define what to return on end. Also, be aware that you will not know in asp.net when data actually comes from scanner, and not from user. When scanner returnes data, it's just like keyboard strokes, you cant know when this happens. So, barcode field should have focus when you start scanning.

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          Enver Maroshi wrote:

          You can use asp.net.

          How come ASP.Net is going to help?:confused:

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          E 1 Reply Last reply
          0
          • M Manas Bhardwaj

            Enver Maroshi wrote:

            You can use asp.net.

            How come ASP.Net is going to help?:confused:

            Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

            E Offline
            E Offline
            Enver Maroshi
            wrote on last edited by
            #5

            Did you read his post or mine? If you would have read what he wrote you would see something like this: "We are developing a .net (ideally asp.net but would do win forms if needed)"

            1 Reply Last reply
            0
            • Z ziwez0

              Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

              D Offline
              D Offline
              DaveyM69
              wrote on last edited by
              #6

              Most barcode scanners simply act as an additional keyboard and send keystrokes straight to whatever has focus as if it were typed. You can normally program the scanner by way of special control codes to operate how you would like. For example, where I work we set them to insert a TAB at the end of each read so focus is automatically moved to the next control in the tab order.

              Dave
              BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
              Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
              Why are you using VB6? Do you hate yourself? (Christian Graus)

              1 Reply Last reply
              0
              • Z ziwez0

                Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Hi... For about one year, I make the same application also. We are using scanner from www.cognex.com or www.datalogic.com. Just find a scanner with RS232 interface. Then use class SerialPort Class. Use the methode ReadLine(). If the scanner read a barcode, then you get the ID from the methode ReadLine(). It's so easy. You can also test is using HyperTerminal. There are more than 2 manufacturer of scanner, you can find other manufacturer also. There is also scanner type with USB. If you install the driver, then it will be converted to RS232 (Virtual Port). You can read it also using class SerialPort. Find a sample how to use class SerialPort in MSDN. Just use the sample to read some barcode from scanner.

                1 Reply Last reply
                0
                • Z ziwez0

                  Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

                  R Offline
                  R Offline
                  Rob Philpott
                  wrote on last edited by
                  #8

                  You can get hold of them fairly easily, either in fixed form like you get at a supermarket or the handheld variety. The last time I used one was about 15 years ago and in those days was connected to the serial port. These days they're probably serial over USB or something so it shouldn't be hard to start reading off it. They simply send a series of characters representing the barcode. Very like someone typing the numbers in on a keyboard.

                  Regards, Rob Philpott.

                  1 Reply Last reply
                  0
                  • Z ziwez0

                    Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    In addition to the Serial Port scanners, you CAN use "keyboard wedge" scanners. Most scanners will let you prefix and postfix custom character strings to the code so your application can tell a code is being "typed", allowing you to either position the focus in the appropriate control or just skip the control entirely and read the keystrokes, building the code internally, until you see the postfix characters. You can then do whatever you need with the code without worrying about where the input focus is. You'd normally use the forms key___ events, with KeyPreview set to True, instead of a particular controls events.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008

                    1 Reply Last reply
                    0
                    • Z ziwez0

                      Hi, This is a new one to me but Ill set the scene, Would appreciate any support from people who currently or have done this. We have thousands of products that are going to go through a production line, the prodcut comes to us with a barcode already attached. I need my users to scan the item at each stage, ie received the item, assebled, test, etc... We are developing a .net (ideally asp.net but would do win forms if needed)that will need to record the barcode (unique id) and add several infomation items to that record along the line. So, I need to Find a barcode scanner that will read the bardcode, and I can interact with in my .net application (all data will be stored in sql). thanks

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      You can get what is called a 'keyboard wedge' which is put in series with the keyboard. This has the advantage you can enter values with the keyboard when testing.

                      Visit http://www.notreadytogiveup.com/[^] and do something special today.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups