This is a migrated thread and some comments may be shown as answers.

Document templates

2 Answers 68 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 21 Jan 2011, 11:14 AM
Hello,

I'd like to offer users the possibility to create/consume Templates, similar to Word templates. Is this possible? Can any one give me an starting point?

Thanks

2 Answers, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 24 Jan 2011, 04:26 PM
Hello,

Any comment ablout this question?
0
Iva Toteva
Telerik team
answered on 24 Jan 2011, 05:41 PM
Hi DanĂ­,

We do not support predefined word-like styles currently, but we are planning on including them at some point, hopefully in 2011.Q1.
I have prepared a sample demo, which shows how you can define and set a style on button click. When there are selected parts of the document, the changes are applied to them. If the selection is empty, the changes are applied to the whole paragraph (like Headings work in MS Word).
Note that there is a small bug with the Background property of the paragraph and you need to set it, otherwise a NullReferenceException will occur. This will be fixed in the next release.
If you have other questions, do not hesitate to contact us again.

Regards,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
RichTextBox
Asked by
Daní
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or