365 business development logo

Encode Method

Encodes the barcode value using barcode format, dimensions (height & weight) and margin.

Syntax

	Encode(var tempBlobBuffer: Codeunit "Temp Blob"; barcodeValue: Text; barcodeFormat: enum "bdev.Barcode Format"; height: Decimal; width: Decimal; margin: Decimal; includeText: Boolean)

Parameters

tempBlobBuffer

Type: Codeunit “Temp Blob”
Temp Blob codeunit instance to store the encoded barcode.

barcodeValue

Type: Text
Barcode Value to encode.

barcodeFormat

Type: enum “bdev.Barcode Format”
Barcode Format to use for encoding.

height

Type: Decimal
Height for the encoded barcode.

width

Type: Decimal
Width for the encoded barcode.

margin

Type: Decimal
Margin for the encoded barcode.

includeText

Type: Boolean
Specifies that the barcode value should be displayed below the barcode.

Return Value

None

See Also

Encode(Codeunit, Text, enum)
Encode(Codeunit, Text, Code[20])
Encode(Codeunit, Text, Record)
Encode(Codeunit, Text, enum, Decimal)
Encode(Codeunit, Text, enum, Decimal, Decimal)
Encode(Codeunit, Text, enum, Decimal, Decimal, Decimal)