Open a Word document (2007/2010) that has a table, select the table and right-click, select AutoFit β AutoFit to Window
How can I implement this action in C # using the OpenXML SDK 2.5?
You can set the width of the table to 100% of the page or 5000 fifties as a percentage.
Table table = ... TableWidth width = table.GetDescendents<TableWidth>().First(); width.Width = "5000"; width.Type = TableWidthUnitValues.Pct;
Source: https://habr.com/ru/post/1495030/More articles:how to pass qobject as an argument from a signal to a slot in qt connect - qtBug Fix: Unregistered InterruptedException - javaHow to show different path-based content in Racket web servlets? - webDisable specific Django middleware during tests - djangoHow to get xml output from running grunt jasmine - junitProblem with Android paint on different APIs - androidAQuery and Volley ImageLoader for image caching - androidOperation that may succeed / fail - return type and naming convention - c #Which constructor invokes this semantics? - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1495035/c-array-error-expect-elements-to-be-initialized-but-they-are-not-and-my-setters-appear-not-to-work-sometimes&usg=ALkJrhjyFfMCAJrl4k7adOsJ2bVqEP3mVwAll Articles