Posted by a ceTe Software moderator
Hello,
You can achieve your requirement using DynamicPDF Generator for .NET. You will need to use "~1" in the barcode input text to add FNC1. The "~" (tilde) alone has no value. You can add multiple FNC1 characters without any problem.
Setting IsUCCEAN128 property to true will add a FNC1 character at the beginning of the barcode indicating that the barcode is GS1(EAN128).
Here is sample code:
Document doc = new Document();
Page page = new Page();
Code128 code = new Code128("42035283~19205596900873000000029", 10, 10, 50);
code.ProcessTilde = true;
code.IsUCCEAN128 = true;
page.Elements.Add(code);
doc.Pages.Add(page);
doc.Draw("code-gs1-128.pdf");
Also, we do not validate any AI numbers (Application Identifiers), you will need to make sure to provide the correct values.
Thanks,
ceTe Software Support Team