Difference between inline and floating autoShapes of type rectangle

Hello,

I am using aspose.Word for creating a document that contains autoShape of type rectangle.

I am using the Shape class for that. I noticed that if I make those shapes inline they have a gap of couple of pixels between them, which don’t exist when those shapes are in floating mode. You can notice those gap, when viewing the created document in web view.

Do you have an idea how I get rid of those gaps? I need to have those shapes in inline mode.

Thanks

Yair

No, it is not possible in MS Word to place the inline shapes without gaps. If you want to place them side by side you can use the table instead. Or if you still need it to be autoshapes then you can use the approach described in the recent entry of Aspose.Words blog:

https://reference.aspose.com/words/net/aspose.words.documentbuilder/insertimage/methods/8

It explains how to place shapes in table cells so that they could fill the cell space completely.

hope this helps,