-
Notifications
You must be signed in to change notification settings - Fork 302
Description
First of all thanks for a great library!
In order to work around a specific bug in Excel, I would like to know if the cell has been explicitly saved as a string value (with t="s" set on the <c> element) or if EPPlus just interpreted the value as a string based on some heuristics. I couldn't find any way to do this in the documentation or public members.
Some context: specifically the bug I'm struggling with is related to Cell.Style.QuotePrefix, which works fine from the EPPlus side, but is 'sticky' on Microsoft side. When a user (only) removes the single quote, Excel does not update the cell style and thus the bit remains true. The only difference in the XML is that Microsoft removes the t="s" attribute (and puts the value directly in the cell, instead of referring to the shared strings).
This is apparently a big enough clue for Excel itself to change the default horizontal alignment when rendering the sheet, but I need to do the same programmatically and I don't have access to the t attribute as far as I could tell.
Any advice appreciated!