PSSetPWSize()

Syntax

Function PSSetPWSize(nWidth, nHeight)
TPageScript:SetPWSize(nWidth, nHeight)

Returns

NIL

Description

Call PSSetPWSize() to set the print preview window size. You may call this only once at program start, but after PSInit() or at anytime before starting a new print job. Passing a negative value to nWidth will center the window horizontally. Passing a negative value to nHeight will center the window vertically.

Arguments

nWidth Width of the window expressed in pixels. If set to -1, PageScript tries to center it on the screen.
nHeight Height of the window expressed in pixels. If set to -1, PageScript tries to center it on the screen. The Windows Taskbar height is taken into account.

See also

PSSetPWBounds()
PSSetPWColors()
PSSetPWPosition()
PSSetPWState()
PSSetPWZoomLevel()