This project has moved. For the latest updates, please go here.

OutOfRange length

Jul 5, 2012 at 5:47 PM

Hello, I cannot generate a woorkbook from the attached excel. I could process successfully with similar files (same format .xlsm) but here I got an error and I didn't realized what are the differences.

var wb = new XLWorkbook(file);

By debugging the source code, I got the error in method LoadColorsAndLines in the following line.

var strokeWeight = shape.Attribute("strokeweight");            if (strokeWeight != null) drawing.Style.ColorsAndLines.LineWeight = Double.Parse(strokeWeight.Value.Substring(0, strokeWeight.Value.Length - 2), CultureInfo.InvariantCulture);


where strokeWeight is always "0" for the whole xdoc