Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKSHEET > of_center_horizontally

of_center_horizontally() method

Center the worksheet data horizontally between the margins on the printed page.

Syntax

Worksheet.of_center_horizontally ( pages )

Return value

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

Examples

worksheet.of_center_horizontally ( )