Ecia.Barcode.Parser
provides the ability to easily parse ECIA barcode strings.
Disclaimer: This package is not an official ECIA product and is not endorsed or affiliated with ECIA. It is an independent implementation for parsing ECIA barcode strings.
Available on NuGet.
Install with the dotnet CLI: dotnet add package Ecia.Barcode.Parser
, or through the NuGet Package Manager in Visual Studio.
See the sample app for a basic example!
Dependency Injection
var appBuilder = WebApplication.CreateBuilder(args);
appBuilder.Services.AddTransient<IEciaBarcodeParser, EciaBarcodeParser>();
Without DI
var parser = new EciaBarcodeParser();
var barcodeString = "some ecia barcode string";
var parser = new EciaBarcodeParser();
ParsedBarcode parsedBarcode = parser.ParseBarcode(barcodeString);
ParsedBarcode parsedBarcode = parser.ParseBarcode(barcodeString);
// LabelFormat is used to determine the required identifiers. Omit or use LabelFormat.Unkown when the LabelFormat isn't known!
ValidationResult validationResult = parser.ValidateParsedBarcodeCompliance(parsedBarcode, LabelFormat.PackingSlip);
ECIA 2D barcode documentation EIGP 114.2018