• micagordon20 (2/5/2015)


    Generating barcode Code-128 in C# Class example (C# Code 128 Generator Complete Demo Source Code):

    Linear code128 = new Linear();

    code128.Type = BarcodeType.CODE128;

    code128.Data = "0123456789";

    code128.X = 1;

    code128.Y = 60;

    // Generate Code-128 and encode barcode to gif format

    code128.Format = System.Drawing.Imaging.ImageFormat.Gif;

    code128.drawBarcode("C://csharp-code128.gif");

    // Print Code 128 C# Bitmap object

    Bitmap code128Bitmap = code128.drawBarcode();

    Generating barcode Code-128 in VB.NET Class example (VB.NET Code 128 Generator Complete Demo Source Code):

    Dim code128 As OnBarcode.Barcode.Linear

    code128 = New OnBarcode.Barcode.Linear()

    code128.Type = OnBarcode.Barcode.BarcodeType.CODE128

    code128.Data = "0123456789"

    code128.X = 1

    code128.Y = 60

    ' Generate Code-128 and encode barcode to png format

    code128.Format = System.Drawing.Imaging.ImageFormat.Png

    code128.drawBarcode("c:/vbnet-code128.png")

    ' Print Code-128 to vb.net Bitmap object

    Dim code128Bitmap As Bitmap

    code128Bitmap = code128.drawBarcode()

    Hope it will help you.

    thanks for your help. Finally I found a sql function (client was requesting that) and replacing some start/ending chars, and some other stuff made it work. thanks for your code anyway!

    🙂