Managing Page Breaks

Page Breaks

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 the page breaks, use the AddPageBreaks method of the Worksheet class.

Adding Page Breaks

workbook, _ := NewWorkbook()
worksheets, _ := workbook.GetWorksheets()
worksheet, _ := worksheets.Get_Int(0)
worksheet.AddPageBreaks("J20")
workbook.Save_String("outputManagingPageBreaks.xlsx")