PageSetOrientationΒΆ

PageSetOrientation sets the page orientation to portrait or landscape.

bool = PageSetOrientation(hPage, nOrientation)

Return Value

If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).

Parameters

hPage

Identifies the page.

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.

id-668071