65
CITIZEN UWP POS Print SDK - Programming Manual
2.3.33. PageModePrintDirection property
Syntax
int PageModePrintDirection
Attribute
Read/Write
Description
This property holds the print direction of the Page Mode print area. The print direction values are as
follows.
Value
Meaning
CMP_PD_LEFT_TO_RIGHT
Print left to right, starting at top left position of the print area, i.e.,
normal printing.
CMP_PD_BOTTOM_TO_TOP
Print bottom to top, starting at the bottom left position of the print
area, i.e., rotated left 90° printing.
CMP_PD_RIGHT_TO_LEFT
Print right to left, starting at the bottom right position of the print area,
i.e., upside down printing.
CMP_PD_TOP_TO_BOTTOM
Print top to bottom, starting at the top right position of the print area,
i.e., rotated right 90° printing.
Setting this property may also change PageModeHorizontalPosition and PageModeVerticalPosition.
Setting this property will have an effect on the current print area. By changing the print area, it is
possible to generate a receipt or slip with text printed in multiple rotations.
The ConnectAsync method must be complete before accessing this property. This property is initialized
to CMP_PD_LEFT_TO_RIGHT at ConnectAsync method.
Set property
int SetPageModePrintDirection (int direction)
Please specify the property value that you want to set in the parameter.
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Get property
int GetPageModePrintDirection ()
Returns the print direction of Page Mode print area that is set as the return value.