Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The FitToPagesWide and FitToPagesTall settings are used in spreadsheet applications (like Microsoft Excel) to control how a spreadsheet is scaled when printing. These settings help ensure that your printed output fits within a specified number of pages, both horizontally and vertically. Here’s a breakdown of each setting:
Here are some reasons to set FitToPagesWide and FitToPagesTall:
To set the FitToPagesWide and FitToPagesTall settings in Microsoft Excel, follow these steps:
Open your Excel workbook and go to the sheet you want to print.
Go to the Page Layout tab on the Ribbon.
In the Page Setup group, click the small arrow in the bottom‑right corner to open the Page Setup dialog box.
In the Page Setup dialog box, go to the Page tab.
Under Scaling, select the option Fit to and then specify the number of pages wide and tall you want: enter the number of pages wide you want in the first box (Fit to x pages wide) and the number of pages tall you want in the second box (Fit to y pages tall).
Click OK to apply the settings.
To set FitToPagesWide and FitToPagesTall in a specified worksheet, first load the sample file. Then call the Worksheet.PageSetup.setFitToPagesTall(int value) and Worksheet.PageSetup.setFitToPagesWide(int value) methods of the PageSetup object for the desired worksheet. Here is an example in Java:
The output result:

To print a worksheet as one page, first load the sample file. Then call the PdfSaveOptions.setOnePagePerSheet(boolean value) method of the PdfSaveOptions object. Here is an example in Java:
The output result:

To print all columns of a worksheet on one page, first load the sample file. Then call the PdfSaveOptions.setAllColumnsInOnePagePerSheet(boolean value) method of the PdfSaveOptions object. Here is an example in Java:
The output result:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.