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

本秂侑毒 提交于 2019-12-01 09:02:35
Microsoft.Office.Interop.Word.Table table;
/* ... */
table.Rows[1].HeadingFormat = -1;

This is what word for me, Looping through each table at the end

            foreach (Table item in doc.Tables)
            {
                item.Rows[1].HeadingFormat = -1;
                item.ApplyStyleHeadingRows = true;
            }

and setting a style on each table with the property set to create a header on each new

                    t.set_Style(TableStyle);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!