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

Free Support Forum - aspose.com

Wrong table width in Docx to HTML conversion

Hi Aspose team,
I am converting a docx file to HTML using the following options.

HtmlSaveOptions options = new HtmlSaveOptions(); options.ExportRoundtripInformation = true;
options.UseHighQualityRendering = true;
options.SaveFormat = SaveFormat.Html;
options.ImagesFolder = "images";
options.PrettyFormat = true;
options.TableWidthOutputMode = HtmlElementSizeOutputMode.RelativeOnly;

But for some tables in docx file, conversion is creating tables with the width over 100% which is technically not correct (sample is given below). Can you please let me know that how to restrict the table width to be within the range i.e. within 100%? Thanks!

Hi Zeeshan,

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

  • Your input Word document (DOCX file)
  • Aspose.Words generated output HTML file showing the undesired behavior

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

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Best regards,