Interface "Barcode Font Encoder"
Namespace: System.Text
Exposes common interface for barcode font encoder.
Methods
EncodeFont
Encodes a input text to a barcode font.
procedure EncodeFont(InputText: Text, var BarcodeEncodeSettings: Record "Barcode Encode Settings" temporary): Text
Parameters
| Name | Type | Description |
|---|---|---|
| InputText | Text |
The text to encode. |
| BarcodeEncodeSettings | Table System.Text."Barcode Encode Settings" |
Settings to use when encoding the input text. |
Returns
| Type | Description |
|---|---|
| Text |
The encoded barcode. |
IsValidInput
Validates whether a text can be encoded. The validation is based on a regular expression according to https://www.neodynamic.com/Products/Help/BarcodeWinControl2.5/working_barcode_symbologies.htm
procedure IsValidInput(InputText: Text, var BarcodeEncodeSettings: Record "Barcode Encode Settings" temporary): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| InputText | Text |
The text to validate. |
| BarcodeEncodeSettings | Table System.Text."Barcode Encode Settings" |
The text to validate. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the validation succeeds; otherwise - false. |