小编bvl*_*bvl的帖子

我如何使用 OpenXML C# 水平合并 Microsoft Word 表格单元格

我有一张 Microsoft Word 表格。我需要在表格的一行中合并两个单元格。我得到了我需要的细胞:

Wordprocessing.TableRow row = table.Elements<Wordprocessing.TableRow>().ElementAt(i);

 Wordprocessing.TableCell cell1 = row.Elements<Wordprocessing.TableCell>().ElementAt(j);

 Wordprocessing.TableCell cell2 = row.Elements<Wordprocessing.TableCell>().ElementAt(j+1);
Run Code Online (Sandbox Code Playgroud)

如何水平合并这些单元格?

c# merge ms-word cell openxml

4
推荐指数
1
解决办法
3833
查看次数

标签 统计

c# ×1

cell ×1

merge ×1

ms-word ×1

openxml ×1