Barcode renderer – .NET example (VB.NET and C#)

  • Home
  • /
  • Articles
  • /
  • Barcode renderer – .NET example (VB.NET and C#)

Barcode Generator SDK can render barcodes into image files and PDF documents. You may use it to render barcode image directly into a file or image object or you may use desktop or web control barcode on a web page or on a form of your desktop application.

To use Barcode Generator SDK as a barcode renderer in dot NET please use the following sample codes.


 ' Create new barcode generator sdk object
       Dim barcode As New Barcode()

       ' Set barcode type for new barcode image to render
       barcode.Symbology = SymbologyType.Code39

       ' Set barcode value to encode
       barcode.Value = "1234abc"

       ' Render barcode to png image


// Create new barcode generator sdk renderer object
           Barcode barcode = new Barcode();

           // Set barcode symbology type to render
           barcode.Symbology = SymbologyType.Code39;

           // set barcode value for new barcode
           barcode.Value = "abc123";

           // render barcode into image