[CLONED FROM [https://community.devexpress.com/blogs/eaf/archive/2018/08/03/xaf-enhanced-office-module-updated-learning-materials-and-more-v18-1-5.aspx]](CLONED FROM [https://community.devexpress.com/blogs/eaf/archive/2018/08/03/xaf-enhanced-office-module-updated-learning-materials-and-more-v18-1-5.aspx])
I'm doing some testing with the RichTextPropertyEditor and have questions about Styles:
(1) Are the styles stored in each individual document (using DOCX format)?
(2) If so, will it ever be possible to have a global format (like the normal template in Word) so that styles can be made standard over multiple documents -- preferably the entire database?
(3) Can the list of styles be extended through the UI?
You are correct. These styles are stored in the document model and saved along with other document content.
Attaching document templates is not currently supported in RichEditControl. While we have no immediate plans to implement this functionality, we may do so in the future. However, I cannot provide you with any promises or estimates at present.
As for adding new styles, you can extend the style list only in code. Please review the following help topic that describes how to operate with styles: