@brief Set the worksheet zoom factor.
@param worksheet Pointer to a lxw_worksheet instance to be updated. @param scale Worksheet zoom factor.
Set the worksheet zoom factor in the range 10 <= zoom <= 400:
@code worksheet_set_zoom(worksheet1, 50); worksheet_set_zoom(worksheet2, 75); worksheet_set_zoom(worksheet3, 300); worksheet_set_zoom(worksheet4, 400); @endcode
The default zoom factor is 100. It isn't possible to set the zoom to "Selection" because it is calculated by Excel at run-time.
Note, %worksheet_zoom() does not affect the scale of the printed page. For that you should use worksheet_set_print_scale().
See Implementation
@brief Set the worksheet zoom factor.
@param worksheet Pointer to a lxw_worksheet instance to be updated. @param scale Worksheet zoom factor.
Set the worksheet zoom factor in the range 10 <= zoom <= 400:
@code worksheet_set_zoom(worksheet1, 50); worksheet_set_zoom(worksheet2, 75); worksheet_set_zoom(worksheet3, 300); worksheet_set_zoom(worksheet4, 400); @endcode
The default zoom factor is 100. It isn't possible to set the zoom to "Selection" because it is calculated by Excel at run-time.
Note, %worksheet_zoom() does not affect the scale of the printed page. For that you should use worksheet_set_print_scale().