Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKSHEET > of_set_zoom

of_set_zoom() method

Set the worksheet zoom factor in the range 10 <= scale <= 400.

Syntax

worksheet.of_set_zoom ( scale )

Parameters

scaleThe unsigned integer whose value is the zoom factor. Zoom factors in the range 10 <= scale <= 400 are valid

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs.

Description

The default zoom factor is 100.
Note, of_set_zoom() does not affect the scale of the printed page. For that you should use of_set_print_scale().

Examples

worksheet.of_set_zoom ( 200 )