Hi,
My document is created with formate Arial but when I press the F9 key, the table of contents will apear with font TimesNewRoman.Can you please suggest me how to change the font of the table of content.
Here is the code of the table of content.
DocumentBuilder builder = new DocumentBuilder(newdoc1);
Aspose.Words.Style style1=builder.Document.Styles.Add(Aspose.Words.StyleType.Paragraph,"Table of content");
style1.Font.StyleName="Arial";// is it correct
builder.MoveToSection(1);
builder.ParagraphFormat.StyleName="Table of content";
builder.InsertTableOfContents("\\o \"1-3\" \\h \\z \\u");
testdoc =newdoc1;
testdoc.Range.UpdateFields();
testdoc.Save("AutoGenerated.doc", SaveFormat.Doc, SaveType.OpenInWord, this.Response)
Thanks,
Sailaja.