Page 1 of 1

How can I specify RTF Heading3 Format in RichView?

Posted: Sat Nov 27, 2010 7:17 pm
by rhysom
I am creating documents in RichView that are saved in RTF to work in MS Word. I need paragraphs in Word to be Heading3 Format. How can I specify that when I create the paragraph in RichView? Thanks for your help!

Posted: Sat Nov 27, 2010 7:37 pm
by Sergey Tkachenko
Assign OutlineLevel = 3 for the style of this paragraph.

Posted: Sat Nov 27, 2010 8:11 pm
by rhysom
Thank you for the quick response. I tried doing that but the Format Style when in MS Word for that paragraph is "Normal + 13 pt". Do I need to add any code to any event when saving to RTF to make this work?

Posted: Sun Nov 28, 2010 3:27 pm
by Sergey Tkachenko
Assigning OutlineLevel = 3 makes paragraphs of this style level 3 headings. When you import a document in MS Word, these paragraphs will be level 3 headings and you can use them to build a table of contents, or to view a document structure.

However, this assignment does not assign a name to paragraphs of this style. To assign a name, additional settings are required.
For this paragraph style:
- OutlineLevel = 3
- Standard = True
- StyleName = 'heading 3'.
For RichViewEdit control:
- include rvrtfSaveStyleSheet in RTFOptions