Insert shape (rectangle)


Is it possible to programmatically insert a shape into a xlsx document ( i.e. rounded rectangle )
ApiMate ignores all shapes in xlsx document


Sadly while shapes are fully supported otherwise, we don't provide a method to add them. This is mainly because there are about 400 different parameters you can specify on a shape, and the method call would get rather big. Besides that, it isn't a very common request, so its implementation has normally been delayed by more pressing things.

At this moment, what you can do is to have another document with the shape you want to add, and InsertAndCopyRange(aRangeOnTheOtherDocumentThatIncludesTheShape) into the current document. Once you have added it, you can modify most of the properties, add text, etc. But at this moment there isn't a way to directly add a shape.