While reading in a workbook the following exception message occurred (or something similar to it).
yellow [13] can not be converted to Int32.
Traced this down to:
private void LoadColorsAndLines<T>(IXLDrawing<T> drawing, XElement shape)
line 442 the fillColor in this case is yellow [13].
then when XLColor.FromHtml(fillColor.Value) is executed the exception is thrown.
Guessing that in this case there is yet another list of colors that yellow [13] refers to rather than just the color.
Patched my version of the code by...
if(fillColor != null && !fillColor.Value.ToLower().Contains("infobackground") && !fillColor.Value.ToLower().Contains("yellow"))
if needed might be able to give a copy of the workbook after I strip the data from it...
Comments: Pick up the latest source code.
yellow [13] can not be converted to Int32.
Traced this down to:
private void LoadColorsAndLines<T>(IXLDrawing<T> drawing, XElement shape)
line 442 the fillColor in this case is yellow [13].
then when XLColor.FromHtml(fillColor.Value) is executed the exception is thrown.
Guessing that in this case there is yet another list of colors that yellow [13] refers to rather than just the color.
Patched my version of the code by...
if(fillColor != null && !fillColor.Value.ToLower().Contains("infobackground") && !fillColor.Value.ToLower().Contains("yellow"))
if needed might be able to give a copy of the workbook after I strip the data from it...
Comments: Pick up the latest source code.