Hi,
when I'm applying the TOC BuiltinStyles to paragraphs only the indents are applied - without the characterformattings.
I'm using a german MS-Office version where the toc-styles are named "Verzeichnis 1", "Verzeichnis 2" etc. Maybe that's an important information for you ;)
The code below generates a word file like my attached screenshot shows.
-Johannes
IWParagraph paragraph = document.LastParagraph;
paragraph.AppendText("toc1"); paragraph.ApplyStyle(BuiltinStyle.Toc1);
paragraph = document.LastSection.AddParagraph();
paragraph.AppendText("toc2");
paragraph.ApplyStyle(BuiltinStyle.Toc2);
paragraph = document.LastSection.AddParagraph();
paragraph.AppendText("toc3");paragraph.ApplyStyle(BuiltinStyle.Toc3);
paragraph = document.LastSection.AddParagraph();
paragraph.AppendText("toc4"); paragraph.ApplyStyle(BuiltinStyle.Toc4);
applying_toc-style_63c83cd9.zip