Closed vanillajonathan closed 1 week ago
Thank you for the suggestion, but this is not something I wish to have in core library. It's basically out of scope of the project.
Generally speaking, ClosedXML should provide ability to determine concrete formatting, without actually doing a concrete formatting convention. E.g. DataType.Date
has many possible formats, e.g. ISO8601, long date, short date... Whatever choice is selected, it would be wrong for someone (plus fun with formats for different countries). Therefore ClosedXML shouldn't do it. Also, many enum values don't really make sense for formatting, e.g. DataType.Upload
.
IXLCell.InsertTable
should insert data, nothing more. Is user desires to fix formatting, he should set it himself.
Read and complete the full issue template
Do not randomly delete sections. They are here for a reason.
Do you want to request a feature or report a bug?
Did you test against the latest CI build?
If you answered
No
, please test with the latest development build first.Version of ClosedXML
0.102.2
What is the current behavior?
Attributes used on a model fed to the
InsertTable
method have no effect.What is the expected behavior or new feature?
ClosedXML should adjust output according to attributes from the
System.ComponentModel.DataAnnotations
namespace.Is this a regression from the previous version?
No.
Reproducibility
Code to reproduce problem: