print barcode to Zebra printer in c#

11.5k views Asked by At

I am still new to c# and never before have dealt with Zebra printers. Now I need to print barcodes to Zebra printer (Toshiba B-FV4T). I have read here some similar questions but still can't figure out how to do it. I make query from database and get records where one field is barcode string (for example "5247700000000") to the list.

List<OrderLine> orderLines = db.OrderLines.Where(otr => 
    (o.OrderLineID == SelectedOrder.ID) && 
    (o.Good.Group6 == "1" || o.Good.Group6 == "X")).ToList();

Now I need to print out only barcodes.

Thought maybe this is useful but didn't figure out, how to use barcode field there.

Any help please!

1

There are 1 answers

2
Andrii Horda On
  1. Connect your printer to a host.
  2. Install predefined barcode fonts.
  3. Use this example: https://www.codeproject.com/Tips/142616/Generating-and-Printing-Barcodes-on-Zebra-Printer

UPD: or use this lib in trial mode, which will never end, then buy it if its ok http://www.neodynamic.com/products/printing/thermal-label/sdk-vb-net-csharp/download/