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.
Unfortunately, activation email could not send to your email. Please try again.

Applying BuiltinStyle

Thread ID:

Created:

Updated:

Platform:

Replies:

80805 Apr 28,2009 04:39 AM Apr 29,2009 04:24 AM Windows Forms 2
loading
Tags: DocIO
Johannes Goetz
Asked On April 28, 2009 04:39 AM

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

Johannes Goetz
Replied On April 29, 2009 04:22 AM

Hi, sorry, forget this thread ;)

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

-Johannes


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

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.
http://www.syncfusion.com/uploads/redirect.aspx?file=style_d64a535a.png&team=support

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,
Bhuvana


CONFIRMATION

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.

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.

;