How can I specify RTF Heading3 Format in RichView?

General TRichView support forum. Please post your questions here
Post Reply
rhysom
Posts: 2
Joined: Sat Nov 27, 2010 7:10 pm

How can I specify RTF Heading3 Format in RichView?

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Assign OutlineLevel = 3 for the style of this paragraph.
rhysom
Posts: 2
Joined: Sat Nov 27, 2010 7:10 pm

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
Post Reply