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?
thx
support
@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.MoveToBookmark("img");
builder.RowFormat.HeightRule = HeightRule.AtLeast;
builder.InsertImage(@"https://cms.admin.containerize.com/templates/aspose/App_Themes/V3/images/aspose-logo.png");
doc.Save(@"C:\Temp\out.docx");