CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2004
    Posts
    2

    printing barcode from vb program

    Printing a barcode from
    hi
    friends i would like to have vb program from which i can print a barcode froma barcode printer and as well as i can scan a barcode from a barcode scaner ...plse ...i would be thankfull to them if any can come up with a code... my email id is send_2_mee@yahoo.com
    bye

  2. #2
    Cimperiali's Avatar
    Cimperiali is offline Old Uncle Moderator Power Poster Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+) Cimperiali is a name known to all (1000+)
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,722

    barcode examples

    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Mar 2013
    Posts
    4

    Re: printing barcode from vb program

    I am not an expert for barcode issues. So my solution will be quite complex. You need to generate barcodes in VB.NET (sample codes here). Then you need to read barcodes in VB.NET (sorry, I did not find any free sample codes yet)

  4. #4
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,481

    Re: printing barcode from vb program

    Reading a barcode is simple. Many scanners send the barcode data as though it were typed from a keyboard so there is nothing special to do with those simply provide a textbox with focus so the data can be entered into it. Typically I configure the scanner to send a CR at the end and trap for that in the keypress event to process the data and reset the field to accept the next barcode.

    Some barcode scanners will send the data through your serial port rather than through the key board interface in which case you would use the MSComm control or other method to interface with the serial port, still pretty simple to work with.

    For printing you can in many cases use a font and then it depends on which type of barcode you want to use. 3of9 requires the use of an * on either end of the data, code 128 requires that you calculate a check digit and add it to the data and so on.

    If you want to use the internal methods of the barcode printer then that also is doable but varies depending on the printer in question.

    Edit: Just noticed that the OP is almost 10 years old
    Always use [code][/code] tags when posting code.

  5. #5
    Join Date
    May 2013
    Posts
    1

    Re: printing barcode from vb program

    Now adays it is very easy to create barcode in VB.NET. Just use a third party control like this. You do not worry too much. Many detailed creating guide will be provided for you, like barcode image settings in VB.NET, etc. Sometimes we should make full use of Google to find useful information.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width