如何使用Word互操作为每个新页面在表格中创建标题?

Par*_*ial 3 c# interop word-2007

我正在尝试创建一个带有标题的表.我想要为表所采用的每个新页面重复此标题.如何使用Word 2007 Interop在C#中执行此操作?

Par*_*ial 13

Microsoft.Office.Interop.Word.Table table;
/* ... */
table.Rows[1].HeadingFormat = -1;
Run Code Online (Sandbox Code Playgroud)