Microsoft SDK for Java

getPageDimension

This method of the WPrintJob Class retrieves the dimensions of the page (in pixels).

Syntax

public Dimension getPageDimension();

Return Value

Returns the Dimension of the page (in pixels). If the setPageDimensions has not been called, the Dimension object returned is a default Dimension.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.