Barcode Report Functions
Below is an overview of the available report extension functions in the Barcode category. These functions can be used in Reflex Blue to work with barcodes in expressions in the report layout.
AppendGtinCheckDigit function
The AppendGtinCheckDigit function calculates a check digit for an EAN8/EAN13/GTIN barcode and appends it to the data.
Definition
string AppendGtinCheckDigit(string data) Parameters
| Name | Description |
|---|---|
data | Numeric barcode data. |
Return value
The barcode data with the calculated check digit appended in text format.
AppendVerifierDigit function
The AppendVerifierDigit function calculates a price/weight check digit and appends it to the data.
Definition
string AppendVerifierDigit(string data) Parameters
| Name | Description |
|---|---|
data | Numeric barcode data. |
Return value
The barcode data with the calculated check digit appended in text format.
CalculateGtinCheckDigit function
The CalculateGtinCheckDigit function calculates a check digit for an EAN8/EAN13/GTIN barcode.
Definition
string CalculateGtinCheckDigit(string data) Parameters
| Name | Description |
|---|---|
data | Numeric barcode data. |
Return value
The calculated check digit in text format.
CalculateVerifierDigit function
The CalculateVerifierDigit function calculates a price/weight check digit.
Definition
string CalculateVerifierDigit(string data) Parameters
| Name | Description |
|---|---|
data | Numeric barcode data. |
Return value
A calculated check digit in text format.
FormatMoney function
The FormatMoney function formats a Money value for a barcode.
Definition
string FormatMoney(Money value, int totalLength, int decimals) Parameters
| Name | Description |
|---|---|
value | The value you want to format. |
totalLength | The total length of the formatted value including the number of decimals. |
decimals | The number of decimals. |
Return value
The formatted value in text format.
Example
For a value of 123.456, totalLength of 4, and decimals of 2, the result is 2346 (the value then does not fit). For a totalLength of 6, and decimals of 1, the result is 001235.
FormatValue function
The FormatValue function formats a numeric value for a barcode.
Definition
string FormatValue(decimal value, int totalLength, int decimals) Parameters
| Name | Description |
|---|---|
value | The value you want to format. |
totalLength | The total length of the formatted value including the number of decimals. |
decimals | The number of decimals. |
Return value
The formatted value in text format.
Example
For a value of 123.456, totalLength of 4, and decimals of 2, the result is 2346 (the value then does not fit). For a totalLength of 6, and decimals of 1, the result is 001235.
GS1DataMatrix function
The GS1DataMatrix function enables GS1 DataMatrix output for a standard DataMatrix barcode.
Definition
string GS1DataMatrix(object barcodeComponent, string code) Parameters
| Name | Description |
|---|---|
barcodeComponent | The DataMatrix barcode component. |
code | The content of the barcode. |
Return value
The GS1 DataMatrix barcode.