views:

194

answers:

2

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?

+1  A: 

Have a look here:

http://support.microsoft.com/kb/316384

This will get you off to a start.

Tony
I already know how to create a document and a table. What I need to know is how to create a table that will create a header for each new page. The problem I see is that once you create the table you must set a fix number of rows and columns... If I decide to write headers it will crash because there is not enough rows in the table for the rest of the data I have to place in the table.
Partial
+1  A: 
Microsoft.Office.Interop.Word.Table table;
/* ... */
table.Rows[1].HeadingFormat = -1;
Partial