Microsoft SDK for Java

setPageDimensions

This method of the WPrintJob Class sets the logical page dimensions and enables you to effectively use a mapping mode (like GDI).

Syntax

public void setPageDimensions(int width, int height);

Parameters

width The width of the page (in pixels).
height The height of the page (in pixels).

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