Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
According to the definition, a page break is a place in a flow of text where one page ends and the next begins. Microsoft Excel lets users add page breaks into any selected cell of a worksheet.
The location of the cell where the page break is added determines where the page ends, and the rest of the data after the page break is printed on the next page while printing. In simple words, page breaks divide your worksheet into multiple pages according to your specifications. You can also add page breaks to your worksheets at runtime using Aspose.Cells. Aspose.Cells allows developers to add two kinds of page breaks:
In the rest of the discussion, we will describe how you can add horizontal or vertical page breaks to your worksheets using Aspose.Cells.
Aspose.Cells provides a class Workbook that represents an Excel file. The Workbook class contains a Worksheets collection that allows access to each worksheet in the Excel file.
A worksheet is represented by the Worksheet class. The Worksheet class provides a wide range of methods used to manage a worksheet. To add page breaks, use the AddPageBreaks method of the Worksheet class.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.