Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_WORKSHEET > of_print_area

of_print_area() method

Specify the area of the worksheet that will be printed.

Syntax

worksheet.of_print_area (first_row, first_col, last_row, last_col)

Parameters

First_rowThe unsigned integer whose value is the number of first row in the range
First_colThe unsigned integer whose value is the number of first column in the range
Last_rowThe unsigned integer whose value is the number of last row in the range
Last_colThe unsigned integer whose value is the number of last column in the range

Return value

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

Examples

worksheet.of_print_area ( 0, 0, 9, 9 )   //A1:J10 print area