TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetPageOrient

Get the page orientation and dimensions.

boolean TerGetPageOrient( PageNum)
boolean TerGetPageOrientEx( PageNum)
boolean TerGetPageOrient2( PageNum)
int PageNum;Page number between 0 and TotalPages-1

Upon a successful return from this method, the TerGetOutInt method can be used to retrieve the temporarily saved values for these variables:

int pWidth;

Variable to receive the page width (in twips) after considering the orientation. To retrieve this value after calling this method:

width=tej.TerGetOutInt("Width");
int pHeight;

Variable to receive the page height (in twips) after considering the orientation. To retrieve this value after calling this method:

height=tej.TerGetOutInt("Height");
int pHiddenX;

Variable to receive the printer hidden area (in twips) in the x direction. To retrieve this value after calling this method:

HiddenX=tej.TerGetOutInt("HiddenX");
int pHiddenY;

Variable to receive the printer hidden area (in twips) in the y direction. To retrieve this value after calling this method:

HiddenY=tej.TerGetOutInt("HiddenY");

Description: This function is available in the PageMode or PrintView mode only.

Return Value: This function returns true if the page uses the portrait orientation. Otherwise, it returns a false value.