Barcode generation in your .NET application.
Use TBarCode SDK to generate and print barcodes from C#, VB.NET or ASP.NET. Its .NET components connect your application data to barcode images and printer output.
From application data to a barcode
Choose a barcode type, assign its data and render the result. TBarCode supports 100+ symbologies, including EAN, Code 128, QR Code, Data Matrix and GS1 formats.
- Create images for documents, reports and web responses.
- Set barcode dimensions and output resolution for the intended printer.
- Choose the .NET interface for your .NET application; the SDK also provides a native DLL and ActiveX/OCX for other integration needs.
Plan the integration
TBarCode provides a .NET library and components for .NET Framework applications, including Windows Forms and ASP.NET Web Forms. Check the current download documentation for supported target frameworks and Windows requirements.
- Try the SDK in the application and deployment environment you intend to use.
- Test output size, resolution and scan quality with representative data.
- Use the technical examples and FAQ for image streams, printing and deployment.
C# example: save a QR Code
This example uses the TBarCode .NET API and the Windows drawing types. Add the matching SDK references first; the download includes integration examples.
using System.Drawing;
using TECIT.TBarCode;
var barcode = new Barcode();
barcode.BarcodeType = BarcodeType.QRCode;
barcode.Data = "YourDataHere";
barcode.Dpi = 300;
Size size = barcode.CalculateOptimalBitmapSize(null, 6, 6);
barcode.BoundingRectangle = new Rectangle(0, 0, size.Width, size.Height);
barcode.Draw("MyFirstQRCode.jpg", ImageType.Jpg);