Class BarcodeItemUtils
Provides some utilities related to BarcodeItem objects.
Inheritance
Inherited Members
Namespace: Neodynamic.SDK.Printing
Assembly: cs.temp.dll.dll
Syntax
public class BarcodeItemUtils
Methods
GenerateSampleCode(BarcodeSymbology)
Generates a sample value to encode (code) based on the specified symbology.
Declaration
public static string GenerateSampleCode(BarcodeSymbology symbology)
Parameters
Type | Name | Description |
---|---|---|
BarcodeSymbology | symbology | The barcode symbology. |
Returns
Type | Description |
---|---|
System.String | Returns a sample value to encode (code) based on the specified symbology. |
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. |
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. |
GetRelatedProperties(BarcodeSymbology)
Returns an array of properties name based on the specified barcode symbology.
Declaration
public static string[] GetRelatedProperties(BarcodeSymbology symbology)
Parameters
Type | Name | Description |
---|---|---|
BarcodeSymbology | symbology | The barcode symbology. |
Returns
Type | Description |
---|---|
System.String[] | An array of properties name based on the specified barcode symbology. |
GetVoicePickCode(String)
It computes a 4 digit Voice Pick Code from specified GTIN, lot, and optional pack date.
Declaration
public static string GetVoicePickCode(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | Data must contain the 14 digit GTIN number plus Lot information plus optional pack date in the YYMMDD format |
Returns
Type | Description |
---|---|
System.String | The 4 digit Voice Pick Code computed from a hash of the input parameters. |
GetVoicePickCode(String, String)
It computes a 4 digit Voice Pick Code from specified GTIN and lot.
Declaration
public static string GetVoicePickCode(string GTIN, string lot)
Parameters
Type | Name | Description |
---|---|---|
System.String | GTIN | 14 digit GTIN number. |
System.String | lot | Lot information. |
Returns
Type | Description |
---|---|
System.String | The 4 digit Voice Pick Code computed from a hash of the input parameters. |
GetVoicePickCode(String, String, DateTime)
It computes a 4 digit Voice Pick Code from specified GTIN, lot, and pack date.
Declaration
public static string GetVoicePickCode(string GTIN, string lot, DateTime packDate)
Parameters
Type | Name | Description |
---|---|---|
System.String | GTIN | 14 digit GTIN number. |
System.String | lot | Lot information. |
System.DateTime | packDate | Pack Date used with the GTIN and Lot. |
Returns
Type | Description |
---|---|
System.String | The 4 digit Voice Pick Code computed from a hash of the input parameters. |
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. |
IsLinearBarcode(BarcodeSymbology)
Gets whether the specified barcode symbology is linear/1D type or not.
Declaration
public static bool IsLinearBarcode(BarcodeSymbology symbology)
Parameters
Type | Name | Description |
---|---|---|
BarcodeSymbology | symbology | The barcode symbology. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the specified barcode symbology is linear; otherwise false. |