To print
PDF417 barcode in C#, you need both
bcspdf417.ttf true type font and
cruflbcsn.dll .
To get cruflbcsn.dll, you can either download it from
PDF417 Barcode C# ,
or you can generate cruflbcsn.dll if you already have cruflbcs.dll.
tlbimp is a utility of Windows SDK. It converts type definitions of a COM object to equivalent definitions in a common language runtime assembly that you can use in C#.
tlbimp cruflbcs.dll /out:cruflbcsn.dll
Most updated cruflbcs.dll can be download from the following URL:
PDF417 barcode C#.
Print PDF417 Barcode In C#
Add reference to cruflbcsn.dll from your C# project first.
Then use code snippet below to get PDF417 barcode in C#
using cruflbcsn;
cruflbcsn.IPDF417 pPDF417 = new CPDF417();
textBox2.Text = pPDF417.Encode(textBox1.Text);
Or you can use code snippet below to customize a PDF417 barcode in C#
using cruflbcsn;
cruflbcsn.IPDF417 pPDF417 = new CPDF417();
textBox2.Text = pPDF417.EncodeCR(textBox1.Text, 0, 0, 0, 0, 0, 0);
The first parameter is string to encode.
The second parameter is index, always set it to zero.
The other parameters are MaxRow, FixedColumn, Security, Compaction Mode and Truncated option.