8.2. AutoLabelSize Property

Description

Returns or sets the value that determines the current work mode.

Syntax

HRESULT get_AutoLabelSize(HANDLE handle, VARIANT_BOOL* pVal);
HRESULT put_AutoLabelSize(HANDLE handle, VARIANT_BOOL val);

Remarks

Use this property to set/return the current work mode. When AutoLabelSize property is TRUE, the current work mode is barcode design mode; otherwise the label design mode is assumed. Under the barcode design mode, the size of the working area is not fixed. It grows or shrinks as the sizes of other components, such as margins, barcode and the comment change. Under barcode design mode, properties LabelWidth and LabelHeight are read-only and can not be altered.

On the contrary, under the label design mode, the size of the working area is fixed and can not be modified. Under the label design mode, anything beyond the working area is clipped.

If you intend to create a barcode as small as possible, choose the barcode design mode by setting this property to TRUE. If you'd like to print a full label with all components turned on, select the label design mode.

Note

When you switch AutoLabelSize from TRUE to FALSE, the predefined label size - 2 by 2 inches is assumed.

See Also

Section 8.22, “LabelWidth, LabelHeight Properties”

Section 8.3, “AutoSize Property”