Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Edited Unassigned: Incorrect handling of existing wrapText property [15029]

$
0
0
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;

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>