MS Excel files coming from different sources uses inconsistent values of wrapText property.
Some uses "1" and others "true".
MS Excel application properly handles both scenarios however EPPlus library deals with "1" only.
The result is that information about text wrapping is lost during simple load/save operations of EPPlus (for files using "true" value).
Proposed solution:
Consider both "1" and "true" values.
__EPPlus/Style/XmlAccess/ExcelXfsXml.cs__
REPLACE:
>_wrapText = GetXmlNodeString(wrapTextPath) == "1" ? true : false;
WITH
>_wrapText = ((GetXmlNodeString(wrapTextPath) == "1") || ((GetXmlNodeString(wrapTextPath) == "true"))) ? true : false;
Some uses "1" and others "true".
MS Excel application properly handles both scenarios however EPPlus library deals with "1" only.
The result is that information about text wrapping is lost during simple load/save operations of EPPlus (for files using "true" value).
Proposed solution:
Consider both "1" and "true" values.
__EPPlus/Style/XmlAccess/ExcelXfsXml.cs__
REPLACE:
>_wrapText = GetXmlNodeString(wrapTextPath) == "1" ? true : false;
WITH
>_wrapText = ((GetXmlNodeString(wrapTextPath) == "1") || ((GetXmlNodeString(wrapTextPath) == "true"))) ? true : false;