Class BarcodeUtils
BarcodeUtils provides additional utilities related to barcode generation.
Inheritance
Namespace: Neodynamic.SDK.BarcodeCore
Assembly: Neodynamic.SDK.BarcodeCore.dll
Syntax
public class BarcodeUtils : Object
Constructors
BarcodeUtils()
Declaration
public BarcodeUtils()
Methods
GetAustraliaPost4StateBarcodeChecksum(String)
It computes the checksum (Reed Solomon codewords) for an Australia Post 4 State code.
Declaration
public static string GetAustraliaPost4StateBarcodeChecksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | An Australia Post 4 State code. |
Returns
| Type | Description |
|---|---|
| System.String | The checksum (Reed Solomon codewords) for an Australia Post 4 State code. |
GetAustraliaPostDomesticEParcelChecksum(String)
It computes the checksum for an Australia Post Domestic eParcel code.
Declaration
public static int GetAustraliaPostDomesticEParcelChecksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | An Australia Post Domestic eParcel code. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The checksum for an Australia Post Domestic eParcel code. |
GetCode11Checksum(String, Boolean)
It computes the Code 11 checksum.
Declaration
public static string GetCode11Checksum(string code, bool twoDigitsChecksum)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | The Code 11 data. |
| System.Boolean | twoDigitsChecksum | It indicates whether two digits checksum must be calculated or not. |
Returns
| Type | Description |
|---|---|
| System.String | The Code 11 checksum. |
GetCode39Checksum(String)
It computes the checksum Modulus 43 used by Code 39 barcode.
Declaration
public static string GetCode39Checksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | The Code 39 value. |
Returns
| Type | Description |
|---|---|
| System.String | The checksum Modulus 43 used by Code 39 barcode. |
GetCode93Checksum(String)
It computes the two-char checksum Modulus 47 used by Code 93 barcode.
Declaration
public static string GetCode93Checksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | The Code 93 value. |
Returns
| Type | Description |
|---|---|
| System.String | The two-char checksum Modulus 47 used by Code 93 barcode. |
GetDeutschePostModulus11Checksum(String)
It computes the Modulus 11 checksum used by Deutsche Post Code 128 Identcode
Declaration
public static int GetDeutschePostModulus11Checksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | A valid 8-digit Deutsche Post Ident code. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The checksum for a valid 8-digit Deutsche Post Ident code. |
GetDhlAwbChecksum(String)
It computes the checksum Modulus 7 used by DHL AWB barcode.
Declaration
public static int GetDhlAwbChecksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | A DHL AWB 9-digit code. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The checksum Modulus 7 used by DHL AWB barcode. |
GetModulus10Checksum(String)
It computes the checksum Modulus 10 used by many barcode symbologies.
Declaration
public static int GetModulus10Checksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | The code where the checksum will be computed on. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The checksum Modulus 10. |
GetPpnChecksum(String)
It computes the 2-digit checksum Modulus 97 used by IFA PPN barcode.
Declaration
public static string GetPpnChecksum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | An IFA PZN8 code with or without 11 prefix. |
Returns
| Type | Description |
|---|---|
| System.String | The 2-digit checksum Modulus 97 used by IFA PPN barcode. |
GS1DataStrictValidation(String)
It validates the specified GS1 Element Strings i.e. Application Identifier plus Data Field based on GS1 General Specifications rules. An BarcodeException will be thrown in case of any errors.
Declaration
public static void GS1DataStrictValidation(string gs1Data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | gs1Data | The GS1 Element Strings to be validated. |
VinChecksumValidation(String)
It validates whether the VIN checksum is valid in the specified code.
Declaration
public static void VinChecksumValidation(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | code | The VIN code which must be 17 chars length. |