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

Partial picture Partial · Nov 29, 2009 · Viewed 7.5k times · Source

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?

Answer

Partial picture Partial · Nov 29, 2009
Microsoft.Office.Interop.Word.Table table;
/* ... */
table.Rows[1].HeadingFormat = -1;