You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var excel = new ExcelMapper();
var products = Enumerable.Empty<ProductRecord>().ToList();
var file = @"productssaveemptyrecord.xlsx";
//excel.SkipBlankCells = false; --> This does the magic
excel.CreateMissingHeaders = true;
excel.Save(file, products);
My Expectation is:
An Excel file with one line header and no further data is Produced
What I observe:
An empty Excel file is produced. Empty in a sense, that it actually does not contain any header.
Workaround:
Despite any hints in the comment for the SkipBlankCells Property, Setting it to false leads to the desired behaviour.
How to fix:
SkipBlankCells does affect how Excels are written. This should be reflected in the comment. I would recommend to introduce a new property to control the behaviour, if header lines or empty collections are produced.
Kind regards,
Sebastian
The text was updated successfully, but these errors were encountered:
Hi,
when I execute the following code:
My Expectation is:
An Excel file with one line header and no further data is Produced
What I observe:
An empty Excel file is produced. Empty in a sense, that it actually does not contain any header.
Workaround:
Despite any hints in the comment for the SkipBlankCells Property, Setting it to false leads to the desired behaviour.
How to fix:
SkipBlankCells does affect how Excels are written. This should be reflected in the comment. I would recommend to introduce a new property to control the behaviour, if header lines or empty collections are produced.
Kind regards,
Sebastian
The text was updated successfully, but these errors were encountered: