How can I create a header in a table for each new page with Word interop?

后端 未结 2 1586
醉梦人生
醉梦人生 2021-01-21 01:36

I am trying to create a table with a header. I want this header to be repeated for each new page that the table takes. How can I do this in C# with Word 2007 Interop?

2条回答
  •  心在旅途
    2021-01-21 02:01

    Microsoft.Office.Interop.Word.Table table;
    /* ... */
    table.Rows[1].HeadingFormat = -1;
    

提交回复
热议问题