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

Free Support Forum - aspose.com

Image is getting cut while inserting in word document

I am using aspose word ver to generate word document.
I have a table with multiple row and multiple column define in word template
I am cloning the table and trying to add an html image in a cell using InsertHTML method.
Image is getting inserted but the issue is image is shrinking and not coming in its original size.
I have written following code.
Cell cComments = responseRow.Cells[3];
builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Top;
cComments.FirstParagraph.ParagraphFormat.Alignment = ParagraphAlignment.Left;
cComments.CellFormat.VerticalAlignment = CellVerticalAlignment.Top;

string html = @"

builder.InsertNode(new Run(oDoc, ControlChar.LineBreak));

Please see attached images for table structure and original image

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Aspose.Words generated output document which shows the undesired behavior.
  • Please create a standalone (runnable) console application that helps us reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information.

Best regards,


Thanks for the quick response. I resolved the problem, now image is not getting cut.

Thanks and Regards,


It is great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,


I am having one more problem. If i insert HTML table and image together then image is getting cut.
I have attached following resources with this thread.
1) Sample Application
2) Input word document (inside bin folder)
3) Output word document (inside bin folder)

Please help to solve this issue.
Thanks and Regards,
Rahul C.

Hi Rahul,

Thanks for your inquiry. After an initial test with Aspose.Words 14.8.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps.

Best regards,

Hello Awais.

I checked with latest version of aspose and the issue seems to be resolved.
Thanks for your quick help.

Best Regards,
Rahul C.

Hi Rahul,

Thanks for your feedback. It is great that the latest version resolves this issue. Please let us know any time you have any further queries.

Best regards,