worksheet_print
Set print areas, page setup, print titles, and page breaks to control how Excel worksheets print.
Instructions
Configure print areas, page setup, print titles and manual page breaks.
Args: action: "set_print_area", "set_page_setup", "set_print_titles", "add_page_break", "remove_page_break". file_path, sheet_name: Workbook and worksheet. print_area, orientation, paper_size, fit_to_width, fit_to_height, title_rows, title_cols, row, col: params.
Returns: str: Result message.
Notes: - Mostly metadata changes to the sheet's print settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | ||
| row | No | ||
| action | Yes | ||
| file_path | Yes | ||
| paper_size | No | ||
| print_area | No | ||
| sheet_name | Yes | ||
| title_cols | No | ||
| title_rows | No | ||
| orientation | No | ||
| fit_to_width | No | ||
| fit_to_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |