In this example, we will give a guide to introduce you how to generate Code128 using C# in ASP.NET project.
using System; using System.Web; using System.Web.UI; using PQScan.BarcodeCreator; namespace Code128GeneratorInWeb { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Barcode code128 = new Barcode(); code128.Data = "123456789"; code128.BarType = BarCodeType.Code128; code128.Width = 200; code128.Height = 100; code128.ShowText = true; code128.CreateBarcode("code128-webforms.bmp"); } } }