Several sheets that I work with only have AlternateContent nodes. The code in ExcelDrawings.cs (AddDrawing) iterates all child nodes of the xdr:wsDr node looking for one of the following:
* oneCellAnchor
* twoCellAnchor
* absoluteAnchor
The commented out line:
```
//XmlNodeList list = _drawingsXml.SelectNodes("//mc:Choice/xdr:twoCellAnchor", NameSpaceManager);
```
indicates that you were originally looking for an anchor node anywhere in the content. I made the following change (to my version of 4.0.1) which seems to work fine with the AlternateContent nodes:
```
XmlNodeList list = _drawingsXml.SelectNodes("//mc:Choice/*[self::xdr:twoCellAnchor or self::xdr:oneCellAnchor or self::xdr:absoluteAnchor]", NameSpaceManager);
```
Then the foreach loop can make use of this list.
Thanks
Paul.
Comments: Also, you will need to add 2 namespaces to the list in CreateNSM ``` _nsManager.AddNamespace("mc", ExcelPackage.schemaMarkupCompatibility); _nsManager.AddNamespace("a14", ExcelPackage.schemaDrawing); ``` Using the definitions: ``` internal const string schemaMarkupCompatibility = @"http://schemas.openxmlformats.org/markup-compatibility/2006"; internal const string schemaDrawing = @"http://schemas.microsoft.com/office/drawing/2010/main"; ``` Paul.
* oneCellAnchor
* twoCellAnchor
* absoluteAnchor
The commented out line:
```
//XmlNodeList list = _drawingsXml.SelectNodes("//mc:Choice/xdr:twoCellAnchor", NameSpaceManager);
```
indicates that you were originally looking for an anchor node anywhere in the content. I made the following change (to my version of 4.0.1) which seems to work fine with the AlternateContent nodes:
```
XmlNodeList list = _drawingsXml.SelectNodes("//mc:Choice/*[self::xdr:twoCellAnchor or self::xdr:oneCellAnchor or self::xdr:absoluteAnchor]", NameSpaceManager);
```
Then the foreach loop can make use of this list.
Thanks
Paul.
Comments: Also, you will need to add 2 namespaces to the list in CreateNSM ``` _nsManager.AddNamespace("mc", ExcelPackage.schemaMarkupCompatibility); _nsManager.AddNamespace("a14", ExcelPackage.schemaDrawing); ``` Using the definitions: ``` internal const string schemaMarkupCompatibility = @"http://schemas.openxmlformats.org/markup-compatibility/2006"; internal const string schemaDrawing = @"http://schemas.microsoft.com/office/drawing/2010/main"; ``` Paul.