.. highlightlang:: us .. _pagesetorientation: PageSetOrientation ================== .. index:: PageSetOrientation .. us.tag PageSetOrientation ENGLISH PageSet :ref:`PageSetOrientation` sets the page orientation to portrait or landscape. .. function:: bool = PageSetOrientation(hPage, nOrientation) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hPage Identifies the page. .. uparam:: nOrientation If *nOrientation* equals 1, the document will be displayed in portrait orientation. If *nOrientation* equals 2, the document will be displayed in landscape orientation. .. seealso:: :ref:`overview-document-pages`, :ref:`PageGetOrientation`, :ref:`PageCreate` :sub:`id-668071`