3-21 SetVerticalPositionInPM
This function sets the (horizontal) starting position for printing when it is in the Page Mode.
Int32 SetVerticalPositionInPM (Int32 position)
[Parameters]
* lnt32 position
[in] Sets the position to start printing.
[Return Values]
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
……
// Select Page Mode
if (bxlPrinter.SelectPageMode(true) != BXL_SUCCESS)
return;
bxlPrinter.SetPrintAreaInPM(0, 0, 416, 416);
bxlPrinter.SetPrintDirectionInPM(BXL_PD_LEFT_TO_RIGHT);
bxlPrinter.SetVerticalPositionInPM(160);
bxlPrinter.SetHorizontalPositionInPM(40);
bxlPrinter.PrintText(“Bixolon Mobile Printer.”, 0, BXL_FT_DEFAULT, BXL_TS_0WIDTH |
BXL_TS_0HEIGHT);
……
bxlPrinter.PrintDataInPM();
bxlPrinter.FormFeed(2);