We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert image in word

Hi support,

I tried insert an image within a row, but the size of image turned out to be cropped due to restricted height of the row with a cell. I tried documentbuilder to setHeight but the image just keep showing the cropped part. Is there a way to show the full image unlimited to row height or it needs resizing row height?


@jos_maint Most likely the height rule of row in your document is set to Exactly. In this case row height does not grow with the content. To fix the problem you can set the height rule to At Least. For example see the attached documents and simple code:in.docx (12.3 KB) out.docx (13.1 KB)

Document doc = new Document(@"C:\Temp\in.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.RowFormat.HeightRule = HeightRule.AtLeast;