Setprintareainpm - BIXOLON SRP-270 Reference Manual

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

Advertisement

3-26 SetPrintAreaInPM

Sets the size and position of the printing area when set to Page Mode.
int SetPrintAreaInPM (long x, Iong y, Iong width, Iong height)
[Parameters]
* Iong x
[in] x-coordinates of the printing area
* Iong y
[in] y-coordinates of the printing area
* Iong width
[in] width of the printing area
* Iong height
[in] height of the printing area
Width of 58mm: x = 0, y = 0, width = 384, height = 840
[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);
......
PrintDataInPM();
Rev. 1.00
Value
0
-105
-117
The specified argument is not correct.
-124
The function is not supported.
- 38 -
POS/Mobile Printer
Description
The function is successful.
Data transmission failed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents