Barcode renderer - .NET example (VB.NET and C#) - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

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.

VB.NET

 ' 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
       barcode.SaveImage("result.png")

C#

// 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
           barcode.SaveImage("result.png");

Tutorials:

prev
next