![]() |
|
|||||||||
Home > .NET Barcode > Barcode Generation Guide > Word Barcode Generation Guide in C# Barcode for .NET
Quick Navigate
For installation, you just need to add the barcode component dll to vs project reference for later use.
private void pictureBox1_Click(object sender, EventArgs e) { BarcodeLib.Barcode.Linear barcode = new BarcodeLib.Barcode.Linear(); barcode.Type = BarcodeType.CODE39; barcode.Data = "Code128"; barcode.DPI = 72; barcode.UOM = BarcodeLib.Barcode.UnitOfMeasure.PIXEL; barcode.Rotate = RotateOrientation.BottomFacingDown; barcode.BarWidth = 2; barcode.BarHeight = 80; barcode.AutoResize = false; barcode.LeftMargin = 5; barcode.RightMargin = 5; barcode.TopMargin = 5; barcode.BottomMargin = 5; Bitmap bmp = barcode.drawBarcode(); this.pictureBox1.Image = bmp;
|