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. Print Barcode

Print Barcode

Scheduled Pinned Locked Moved C#
designhelp
6 Posts 4 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.
  • S Offline
    S Offline
    samulong
    wrote on last edited by
    #1

    Hi all, I want to design a barcode template then I can dynamic print config with multi column and multi row in a page. Can you help me! Thanks

    D C 2 Replies Last reply
    0
    • S samulong

      Hi all, I want to design a barcode template then I can dynamic print config with multi column and multi row in a page. Can you help me! Thanks

      D Offline
      D Offline
      DavidKiryazi
      wrote on last edited by
      #2

      Samulong, I assume you are going to be trying to design this in C# and i'm assuming that you have registered with the appropriate body to print these barcodes, am I right in these assumptions? I haven't actually done much with page layout / printing in C# but if I had to do it, I would guess it is possible to set it up as a report and store the barcodes in the database as images. You can then dynamically populate the report with barcode images and use C# to render the report and print it. You might want to wait for someone with more experience as there is probably a better way. However, the reason for my post is, normally some label printers (eg Brother) have dll's included that work with the .NET framework and you can print the label directly from your program to the printer. This will make it easier for you or your client, since the barcodes will all come out chopped and ready, rather then having to peel them off an A4 piece of paper. Another advantage is that you don't have to waste time coding page layouts, the dll already has functions and the paper size you choose will be what gets printed. Dave

      OriginalGriffO 1 Reply Last reply
      0
      • S samulong

        Hi all, I want to design a barcode template then I can dynamic print config with multi column and multi row in a page. Can you help me! Thanks

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        There's an article on CP on how to print barcodes.

        Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

        1 Reply Last reply
        0
        • D DavidKiryazi

          Samulong, I assume you are going to be trying to design this in C# and i'm assuming that you have registered with the appropriate body to print these barcodes, am I right in these assumptions? I haven't actually done much with page layout / printing in C# but if I had to do it, I would guess it is possible to set it up as a report and store the barcodes in the database as images. You can then dynamically populate the report with barcode images and use C# to render the report and print it. You might want to wait for someone with more experience as there is probably a better way. However, the reason for my post is, normally some label printers (eg Brother) have dll's included that work with the .NET framework and you can print the label directly from your program to the printer. This will make it easier for you or your client, since the barcodes will all come out chopped and ready, rather then having to peel them off an A4 piece of paper. Another advantage is that you don't have to waste time coding page layouts, the dll already has functions and the paper size you choose will be what gets printed. Dave

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          You don't have to register with anyone to print barcodes - or at least you didn't when I was designing industrial barcode printers a few years ago. You do have to register in order to use Article Numbers (the code shown on products, and held in simple barcodes) in order that they remain unique to a product. There will be a charge for this! Because of the way barcodes work, it is not a good idea to store them as images, as resizing images may compromise readability. Generating them on the fly at the resolution you need is better (and not too complex when you get your head around it). Article Number standards body (UK)[^] can probably give you links for your own country.

          No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          D 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            You don't have to register with anyone to print barcodes - or at least you didn't when I was designing industrial barcode printers a few years ago. You do have to register in order to use Article Numbers (the code shown on products, and held in simple barcodes) in order that they remain unique to a product. There will be a charge for this! Because of the way barcodes work, it is not a good idea to store them as images, as resizing images may compromise readability. Generating them on the fly at the resolution you need is better (and not too complex when you get your head around it). Article Number standards body (UK)[^] can probably give you links for your own country.

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            D Offline
            D Offline
            DavidKiryazi
            wrote on last edited by
            #5

            Thanks for insight :) I will not recommend the storage of barcodes as images anymore lol :) Also I was talking about article numbers when I was refering to registration, I was guessing the OP was gonna be using some form of article number for unique barcodes. I will have to research more for the POS system I am trying to build. Dave

            OriginalGriffO 1 Reply Last reply
            0
            • D DavidKiryazi

              Thanks for insight :) I will not recommend the storage of barcodes as images anymore lol :) Also I was talking about article numbers when I was refering to registration, I was guessing the OP was gonna be using some form of article number for unique barcodes. I will have to research more for the POS system I am trying to build. Dave

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              A barcode doesn't have to have an Article Number - see EAN128 codes which can contain a whole raft full of stuff, with or without an A.N. If you are building a POS which will use product ANs, be aware there may be legal restrictions on some operations (including the order in which they are done). For example in the UK to change pricing you must: Raise price on shelf first. Wait till all customers who might have selected items at the lower price to leave the store. Raise price on the computer. Lowering price is simpler: Lower price on computer. Lower price on shelf. Failure to do it this way may result in serious fines for overcharging! You may have similar restrictions in your country.

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              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