We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel fails to open a generated file if you add cells in non linear order.
For example:
var cells = new List<Cell>(); cells.Add(new Cell(1, "Value1")); cells.Add(new Cell(3, "Value3")); cells.Add(new Cell(2, "Value2"));
This won't open in excel and excel simply suggests "repairing" the file which means deleting the whole column and you are left wondering what happend.
So you either have to order it like this:
var cells = new List<Cell>(); cells.Add(new Cell(1, "Value1")); cells.Add(new Cell(2, "Value2")); cells.Add(new Cell(3, "Value3"));
Or you can overwrite it like this after writing all cell data:
cells = cells.OrderBy(y => y.ColumnNumber);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Excel fails to open a generated file if you add cells in non linear order.
For example:
This won't open in excel and excel simply suggests "repairing" the file which means deleting the whole column and you are left wondering what happend.
So you either have to order it like this:
Or you can overwrite it like this after writing all cell data:
The text was updated successfully, but these errors were encountered: