---
title: "set_fit_to_pages method"
url: "https://reference.aspose.com/cells/python-net/aspose.cells/pagesetup/set_fit_to_pages/"
product: "Aspose.Cells for Python via .NET API References"
---


## set_fit_to_pages(self, wide, tall) {#int-int}

Sets the number of pages the worksheet will be scaled to when it's printed.



```python

def set_fit_to_pages(self, wide, tall):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| wide | int | Pages wide. |
| tall | int | Pages tall. |



### See Also
* module [`aspose.cells`](../../)
* class [`PageSetup`](/cells/python-net/aspose.cells/pagesetup)
