locked
PageBreaks format in Excel and ClosedXML RRS feed

  • Question

  • Hello,
     
    I have 5 Excel files with pagebreaks format, but when I write in these files with ClosedXML and C#, the pagebreaks format disappears and the normal format appears. Nevertheless, when I open the files and I go to Display option then PageBreak, it returns to the right format (PageBreak format).
    In fact, I would like that after writing in Excel files with ClosedXML, the PageBreak format remains (PAgeBreak format). 
     
    Do you know how to keep pagebreaks format in these files after writing in these files with ClosedXML, please?
     
    Thanks. 
    Tuesday, June 9, 2020 3:14 PM

All replies

  • Best to ask under the issues tab here

    https://github.com/ClosedXML/ClosedXML/issues


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, June 9, 2020 8:57 PM
  • Hi speed780,

    Thank you for posting here.

    When I created an excel file with page breaks, I found that even if I just closed and reopened the file, the page breaks would disappear, but when I click View => Page Break Preview, I see that the page breaks still exist.

    I am using Office 2016, and I don’t know which version you are using, so I want you to confirm whether this problem is caused by ClosedXML or the characteristics of Excel itself.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, June 10, 2020 1:47 AM