Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Ability to add an IgnoredError?

$
0
0
Is there any way in ClosedXML to bypass cell errors, such as numbers stored as text?

In OpenXML, it's accomplished as follows:
var ignoredError = new IgnoredError
            {
                SequenceOfReferences =
                    new ListValue<StringValue>
                    {
                        InnerText = "A1:Z20"
                    },
                NumberStoredAsText = true
            };

...
            sheet.Elements<IgnoredErrors>().Append(ignoredError);

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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