2.2.25 HorizontalOffset property
Syntax
int HorizontalOffset
Attribute
Read/Write
Description
Sets the horizontal offset to adjust the horizontal printing position on the paper.
Inch system 0000 – 9999 (0.00 inch - 99.99 inches)
Metric system 0000 – 9999 (0.0 mm - 999.9 mm)
Default value 0000
Setter method
int setHorizontalOffset (int horizontalOffset)
Returns CLS_SUCCESS (0) on success. See "2.1 Return value" for the error codes.
Getter method
int getHorizontalOffset ()
Returns the set value. If nothing has been set, it returns CLS_PROPERTY_DEFAULT(999999).
Example
int horizontalOffset;
printer.setHorizontalOffset(20);
horizontalOffset = printer.getHorizontalOffset();