@param worksheet Pointer to a lxw_worksheet instance to be updated.
@param first_row The first row of the range. (All zero indexed.)
@param first_col The first column of the range.
@param last_row The last row of the range.
@param last_col The last col of the range.
@return A #lxw_error code.
This function is used to specify the area of the worksheet that will be
printed. The RANGE() macro is often convenient for this.
@brief Set the print area for a worksheet.
@param worksheet Pointer to a lxw_worksheet instance to be updated. @param first_row The first row of the range. (All zero indexed.) @param first_col The first column of the range. @param last_row The last row of the range. @param last_col The last col of the range.
@return A #lxw_error code.
This function is used to specify the area of the worksheet that will be printed. The RANGE() macro is often convenient for this.
@code worksheet_print_area(worksheet, 0, 0, 41, 10); // A1:K42.
// Same as: worksheet_print_area(worksheet, RANGE("A1:K42")); @endcode
In order to set a row or column range you must specify the entire range:
@code worksheet_print_area(worksheet, RANGE("A1:H1048576")); // Same as A:H. @endcode