Search code examples
asp.netexport-to-excelepplusasp.net-core-2.2export-to-pdf

Asp Core + EPPLUS How to do a page break?


I am working with Asp Core 2.2 and Epplus library. I need to generate an Excel document and display titles as page divisions.

I need to make page breaks, but I don't know how to do it.

Can somebody help me?


Solution

  • You can set a page break on columns or rows like this.

    ws.Column(5).PageBreak = true;
    ws.Row(5).PageBreak = true;