xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.78k stars 474 forks source link

No way to add parallel images #472

Open EarthToFatt opened 9 months ago

EarthToFatt commented 9 months ago

I cant seem to find any way to add one image to a document, and add an image immediately after (to the right of) the first image. All forms of image adding just add the image below the first one. How would I go about doing this?

TO CLARIFY: I cannot find a way to do this beyond the method mentioned in a different issue - that being adding an invisible table. For my project, that is not an option. I need images to insert one after the other, left to right.

XceedBoucherS commented 8 months ago

Hi,

You must use a : picture.WrapStyle = WrapStyle.WrapSquare; and then you can position your picture in the page. This is a feature of Xceed Words for .NET (the commercial version of DocX). You can try it for free here: https://xceed.com/en/our-products/product/words-for-net

In sample "AddPictureWithTextWrapping()", it shows an example of how to use it: image

Thank you