Sethorizontalpositioninpm - BIXOLON SRP-270 Reference Manual

Linux sdk guide for pos/mobile printer
Hide thumbs Also See for SRP-270:
Table of Contents

Advertisement

3-29 SetHorizontalPositionInPM

Set the horizontal position for printing.
int SetHorizontalPositionInPM (Iong position, bool relative)
[Parameters]
* long position
[in] Starting position to be set
* bool relative
[in] Set whether it is relative or absolute position from the current position.
If TRUE, it is set to relative position.
[Return Values]
Constant
SUCCESS
WRITE_ERROR
BAD_ARGUMENT
NOT_SUPPORT
* Example
ConnectToPrinter(...........);
......
// Select Page Mode
if (SelectPageMode(true) != SUCCESS)
return;
SetPrintAreaInPM(0, 0, 416, 416);
SetPrintDirectionInPM(PAGEMODE_ROTATE_90);
SetVerticalPositionInPM(160, false);
SetHorizontalPositionInPM(40, false);
PrintText("Bixolon Printer.", ALIGNMENT_CENTER, ATTR_FONTTYPE_A,
TS_WIDTH_0 | TS_HEIGHT_0);
......
PrintDataInPM();
Rev. 1.00
Value
0
-105
-117
The specified argument is not correct.
-124
The function is not supported.
- 41 -
POS/Mobile Printer
Description
The function is successful.
Data transmission failed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents