Ejemplo n.º 1
0
        public void ResetNumberingForSection(Section sec)
        {
            object      align     = WdPageNumberAlignment.wdAlignPageNumberOutside;
            object      firstPage = true;
            PageNumbers pageNums  = sec.Headers[WdHeaderFooterIndex.wdHeaderFooterPrimary].PageNumbers;
            PageNumber  pgNum     = pageNums.Add(ref align, ref firstPage);

            pageNums.RestartNumberingAtSection = true;
            pageNums.StartingNumber            = 1;
            pgNum.Delete();
        }