DocumentUpdateTableLayout Method
Updates widths of cells and tables in the document according to their preferred widths and content. You do not need to call this method if the tables appear correct in the output document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
public void UpdateTableLayout()

You do not normally need to call this method as cell and table widths are maintained automatically. You can call this method before exporting to PDF (or any other fixed-page format), only in rare cases where you confirmed that tables appear incorrectly laid out in the output document. Calling this method might help to correct the output.

Shows how to update the layout of tables in a document.
Document doc = new Document(MyDir + "Document.doc");

// Normally this method is not necessary to call, as cell and table widths are maintained automatically.
// This method may need to be called when exporting to PDF in rare cases when the table layout appears
// incorrectly in the rendered output.
See Also