At the current point in time, information encoding is being done using barcodes. There are many barcode types available, and Code11 is one of the widely used barcode standards. In this blog post, we will run through how to develop a Code11 barcode generator programmatically. So, this guide is for you if you are looking to integrate barcode generation in your .NET application. We will use Aspose.BarCode for .NET, a rich-featured barcode generator SDK. Moreover, we will implement the functionality to demonstrate the capabilities of Aspose.BarCode for .NET. The whole process is simple and developer-friendly.
Barcode Generator SDK Installation
Run the following command in your Package Manager Console:
Install-Package Aspose.BarCode
Otherwise, you can download the files from this link.
Build a Code11 Barcode Generator in C#
Once the SDK is set up, the next step is to write a few lines of source code to generate a barcode Code11 programmatically.
You may follow the steps given below:
- Define a path for the working directory.
- Load the Aspose license by calling the License method.
- Specify the data type to be encoded with Code11 barcode specification.
- Create an object of the BarcodeGenerator class.
- Invoke the save method to save as a JPEG file.
Get the following code sample to create a barcode Code11:
The above code snippet generates the following output:
Get a Free License
Get a free temporary license to try this barcode generator SDK
Conclusion
To conclude, barcodes are playing a vital role in industries such as healthcare, retail, and more. So, having your own barcode generator can give you a competitive edge. However, this guide demonstrated how to build a barcode Code11 generator in C# using Aspose.BarCode for .NET. It is super straight and offers classes and methods to enrich the functionality as per needs. In addition, you may go through the documentation and API refs for further insights. The GitHub repo also contains the code examples to help you with the implementation.
Also, you may ask your questions on our forum.
FAQs
Q: What does Code11 stand for?
A: Code11 is a 1D linear barcode symbology developed by Intermec, mainly used in the telecommunications industry.
Q: What is the Code11 barcode font?
A: The Code11 barcode font is a special typeface that converts numeric digits (0–9) and the dash symbol (-) into the bar-and-space patterns of the Code11 symbology.
Q: What is Code11 barcode used for?
A: Code11 barcode is applied for labeling telecommunication equipment, identification cards, and inventory tags where only numeric data (0–9) and dashes (-) need to be encoded.