Skip to content

Instantly share code, notes, and snippets.

Generate HIBC LIC Barcodes with Primary Data
//create a HIBC LIC barcode based on QR Code
HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext();
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
//define the primary data to be encoded
complexCodetext.Data = new PrimaryData();
complexCodetext.Data.ProductOrCatalogNumber = "12345";
complexCodetext.Data.LabelerIdentificationCode = "A999";
complexCodetext.Data.UnitOfMeasureID = 1;
//encode the data in the HIBC LIC format and save the generated barcode
using (ComplexBarcodeGenerator gen = new ComplexBarcodeGenerator(complexCodetext))
{
gen.Parameters.Barcode.XDimension.Pixels = 10;
gen.Save($"{path}HIBCLICPrimary.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment