I am using the NPOI framework to generate a 97/2003 Excel workbook. I need to set a page break every 44 rows and from the example provided in the framework download, the code to do this is:
sheet.SetRowBreak(int row)
I can verify these are setting a collection of row integers but when opening the document and viewing the Page Break preview, there is but a single page that encompasses the entire worksheet.
Sample Code below:
for(int rowCount = 0; rowCount < MaxRows; rowCount += 44)
{
worksheet.SetRowBreak(rowCount);
}
Ideas?