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. C# barcode decoding library

C# barcode decoding library

Scheduled Pinned Locked Moved C#
csharpwpf
27 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.
  • OriginalGriffO OriginalGriff

    Then you will have to read your clients specification, because what you are doing is non-standard so we cannot tell you what parts of the code you need to extract, or how they are encoded...

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    D Offline
    D Offline
    Dzilupl
    wrote on last edited by
    #21

    I only wanted to show you that EAN13 can also contain weight or price because you wrote that EAN13 contains only article number. My question was about decoding string not only from EAN13 which are the easiest to do - most of all I need help with EAN128, Code128 where are many possibilities and AI.

    L 1 Reply Last reply
    0
    • L Lost User

      Well a simple Google search finds GS1-128 - Wikipedia[^].

      D Offline
      D Offline
      Dzilupl
      wrote on last edited by
      #22

      I know all that you send me but like I said - i don't want to miss something and I asked if anyone is using some ready solutions (also paid) that can do this decoding for me.

      L 1 Reply Last reply
      0
      • D Dzilupl

        I know all that you send me but like I said - i don't want to miss something and I asked if anyone is using some ready solutions (also paid) that can do this decoding for me.

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

        If there is already a library in existence for this then Google is the place to look. If Google does not find one then you need to write your own. It's not exactly a difficult problem.

        1 Reply Last reply
        0
        • D Dzilupl

          I only wanted to show you that EAN13 can also contain weight or price because you wrote that EAN13 contains only article number. My question was about decoding string not only from EAN13 which are the easiest to do - most of all I need help with EAN128, Code128 where are many possibilities and AI.

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

          If it's a "custom code", then it's not EAN13 or anything else "published"; so stop referring to it in that way. Call it what it is: a custom (barcode) encoding.

          1 Reply Last reply
          0
          • D Dzilupl

            I don't know exactly what is the structure of the information because it can be different. For example 1 EAN128 code can contains only article number and batch, another one can contains article number with weight and batch, another can contains article with number of pieces and production date etc. There are many possibilities. AI tells what information this string contains and what I need is good algorithm that search for all possible AI and decode string into separate information. I don't want to miss any possibility.

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

            What you're talking about is using a standardized format to non-standard uses. There isn't going to be a library for this! If you're going to use an EAN128 code that can have differing fields from one scan to another, you MUST have another field that tells your code which field format is being used for that code. For example:

            Layout     ProductCode    Weight
              1        394857394587    12.46
            
            Layout     ProductCode    Count
              2        294579834759      12
            
            Layout     ProductCode    DateCode    Count
              3        324875938457   1623           12
            

            You're going to have to write your own library for this, both to generate the barcodes and to read them.

            A guide to posting questions on CodeProject

            Click this: Asking questions is a skill. Seriously, do it.
            Dave Kreskowiak

            1 Reply Last reply
            0
            • D Dzilupl

              I'm writing application in C# (WPF, .net 4.5). I need library for decoding barcodes (EAN128, GS1, code 128, EAN13). Can anyone suggest me ready to use library (free or paid). My scanner connected by USB reads a barcode and sends string od chars (mostly numbers) and I need to decode it to separated PLU, LOT, BBD etc.

              A Offline
              A Offline
              Andrea Simonassi
              wrote on last edited by
              #26

              Hello, about ten years ago, I developed my first and only one client app for a barcode scanner, it was a psion workabout scanner, i can't remember how, but I remember that PSION provided an API that allowed me to register my app into the scanner hardware and get the scanning codes as EVENTS instead of use keyboard emulation, the event arguments were a structure containing lot of metadata about the barcode, such as "barcode kind" geometries and so on, the event arguments also provided a raw byte array of scanning data, which I used to parse a bunch of GS-1 logistic labels. All the above just to say that maybe the hardware manufacturer could provide you the API you need to communicate with their hardware device / driver. Good luck

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                I think what you need to do is to start looking at what is in a barcode: GS1 isn't a barcode (it's an allocation system for barcode numbers), EAN-13 only provides an Article Number, and Code128 is a transport mechanism that allows EAN128 to contain more than just numeric values. Only EAN128 contains specific fields you can decode into PLU, Serial Number, batch codes, etc. And most of them don't bother: they just contain the Article Number. Normally what happens is that the AN is read from the barcode, and used as a lookup to your stock database to determine what type of goods it is, what price you are selling it as, and so forth.

                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

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

                VintaSoft Barcode .NET SDK is the professional SDK that allows to read and write 1D and 2D barcodes in .NET. SDK is very simple, has good documentation, has many examples and allows to add the barcode reading and writing functionality in WinForms, WPF, console, ASP.NET MVC or ASP.NET WebForms application in 1 day. Please try to use the SDK.

                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