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: Reproduce it manually? Manually it works fine I am not the creator of the workbook so exactly how it was created is unknown. attached test file does show error..
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: Reproduce it manually? Manually it works fine I am not the creator of the workbook so exactly how it was created is unknown. attached test file does show error..