We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Applying BuiltinStyle

Thread ID:





80805 Apr 28,2009 08:39 AM UTC Apr 29,2009 08:24 AM UTC WinForms 2
Tags: DocIO
Johannes Goetz
Asked On April 28, 2009 08:39 AM UTC


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.


IWParagraph paragraph = document.LastParagraph;
paragraph.AppendText("toc1"); paragraph.ApplyStyle(BuiltinStyle.Toc1);

paragraph = document.LastSection.AddParagraph();

paragraph = document.LastSection.AddParagraph();

paragraph = document.LastSection.AddParagraph();
paragraph.AppendText("toc4"); paragraph.ApplyStyle(BuiltinStyle.Toc4);


Johannes Goetz
Replied On April 29, 2009 08:22 AM UTC

Hi, sorry, forget this thread ;)

I worked with a preformatted template. I did not realised that issue.


Bhuvaneswari P [Syncfusion]
Replied On April 29, 2009 08:24 AM UTC

Hi Johnes,

Thank you for your inquiry.

I have seen your screenshot and created the sample based on the code snippet. Its working fine as expected. The screenshot output is expected output. The TOC style contains only line Spacing and indentation. Could you please do the same thing in MS word ( open new document in MS word, and type text like give in the screenshot and apply the TOC styles)?

Here is the TOC styles defined format.

Please try the something with MS word, if you find any difference; please let us know with document. This will help us to investigate the issue further.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon