Page Breaks Not Working

Issue #1271 new
Aman Kapur created an issue

Not sure if its due to version update, but my page breaks have stopped working. Usage is

worksheet.page_breaks.append(Break(id=row_number))

Tried on empty test bench as well as follows:

from openpyxl import Workbook
from openpyxl.worksheet.pagebreak import Break

wb = Workbook()
ws = wb.active
ws.page_breaks.append(Break(id=2))
wb.save('text.xlsx')

Neither seem to create a row break.

Comments (2)

  1. Aman Kapur reporter
    • edited description

    Not sure if its due to version update, but my page breaks have stopped working. Usage is

    worksheet.page_breaks.append(Break(id=row_number))
    

    Tried on empty test bench as well as follows:

    from openpyxl import Workbook
    from openpyxl.worksheet.pagebreak import Break
    
    wb = Workbook()
    ws = wb.active
    ws.page_breaks.append(Break(id=2))
    

    Neither seem to create a row break.

  2. Log in to comment