0

Is there any way to set the page break in EXCEL file using NPOI in C#..?

I have follow the solution on this link, but still nothing happend on my generated excel files. I'm using NPOI 2.0.1.0.

Community
  • 1
  • 1
Praditha
  • 1,162
  • 5
  • 24
  • 45

1 Answers1

2
var doc = new XWPFDocument();
var pageBreak = doc.CreateParagraph();
var pageBreakRun = pageBreak.CreateRun();
pageBreakRun.AddBreak(BreakType.PAGE);
umutesen
  • 2,523
  • 1
  • 27
  • 41