question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Freezing excel rows doesn't work in version 2.10.0

See original GitHub issue

After updating to version 2.10.0 from 2.9.1 the option to freeze rows using a pane results in a corrupt excel file.

.NET Framework 4.7.2 DocumentFormat.OpenXml 2.10.0

SheetView sheetView = worksheet.SheetViews.Elements<SheetView>().FirstOrDefault();
Selection selection = sheetView.GetFirstChild<Selection>();
Pane freezePane = new Pane()
{
      VerticalSplit = topRows,
      TopLeftCell = $@"A{topRows + 1}",
      ActivePane = PaneValues.BottomLeft,
      State = PaneStateValues.Frozen
};
sheetView.InsertBefore(freezePane, selection);

Observed

Excel file can no longer be opened.

Expected

The excel file to work like version 2.9.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
twsouthwickcommented, Feb 28, 2020

A 2.10.1 release is now available on NuGet. Thanks for the report!

1reaction
twsouthwickcommented, Feb 26, 2020

I’m looking at cutting a 2.10.1 release to get this fix out quicker than a 2.11 release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Freezing excel rows doesn't work in version 2.10.0 #680
After updating to version 2.10.0 from 2.9.1 the option to freeze rows using a pane results in a corrupt excel file.
Read more >
Trouble Freezing Top Row and First Column Together
Select the cell below the rows and to the right of the columns you want to keep visible when you scroll. Select View...
Read more >
How to Fix Freeze Panes not Working Issue
By formatting the data like a table instead of freezing the top row, you can solve this problem. For this,. Open the Home...
Read more >
Freeze columns or rows in Microsoft Excel - YouTube
To keep an area of a worksheet visible while you scroll to another area of the worksheet in Microsoft Excel, go to the...
Read more >
R for Windows FAQ
2.1 Where can I find the latest version? Go to any CRAN site (see https://CRAN.R-project.org/mirrors.html for a list), navigate to the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found