I can't create table of contents for my document.
I use code:
- Code: Select all
Section section = _wordDocument.AddSection();
Paragraph p = section.AddParagraph();
p.AppendTOC(1, 3);
but in document i see only string "TOC"
Why?
P.S. MS Word editor create table of contents for this document normally.