3-25 SetPrintAreaInPM
This function sets the position and the size of the printing area in page mode as following.
long SetPrintAreaInPM(long x, long y, long width, long height)
[Parameters]
* long x
[in] Horizontal starting position
* long y
[in] Vertical starting position
* long width
[in] Horizontal printing area width
* long height
[in] Vertical printing area width
When paper width of 58mm is selected: x = 0, y = 0, width = 384, height = 840
[Return Values]
long lResult;
lResult = PrinterOpen(“portinfo…”, 1000);
……
// Select Page Mode
if (SelectPageMode(true) != BXL_SUCCESS)
return;
SetPrintAreaInPM(0, 0, 416, 416);
……
FormFeed(2);