Путь github для c.docx — https://github.com/angmangm/test
введите здесь описание изображения
Код: Выделить всё
static void Main(string[] args)
{
Dictionary rowHeights = new Dictionary();
string filePath = @"D:\c.docx";
Application wordApp = new Application();
Document doc = wordApp.Documents.Open(filePath, ReadOnly: false, Visible: true);
try
{
if (doc.Tables.Count > 0)
{
// Iterate through each table
for (int tableIndex = 1; tableIndex
Подробнее здесь: [url]https://stackoverflow.com/questions/78369959/i-cant-set-the-row-height-of-a-word-table-to-the-minimum-value-in-c-sharp[/url]