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

How to apply a word template to RadRichTextBox in Silverlight.

4 Answers 96 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Sheetal
Top achievements
Rank 1
Sheetal asked on 18 Jul 2012, 06:33 AM
Hi

I have created one Silverlight application, in that I used RadRichTextBox in word format.

I have already created one word template with cover page and Header Footer, Which can be used in creating a Resume.
I want to apply this template to a RadRichTextBox and when applied, the data from a SharePoint list should be viewed in a tabular format in this applied template.

User will just format the data according to his requirement and press the save button to generate a word resume.
Can anybody please suggest any solution on how to apply word template to RadRichTextBox.


Thanks
Sheetal

4 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 18 Jul 2012, 07:16 PM
Hi Sheetal,

You can setup RadDocument to import the original document's layout. To get started, this link will bring you to the RadDocument help documentation. Take a minute to read though it.

After looking at that and familiarizing yourself with RadDocument, take a look at this link. You can import a document that is in .DocX format or in HTML format and retain the formatting. To see more on Import and Export settings, go here.

Good Luck,
Lancelot
0
Martin Ivanov
Telerik team
answered on 20 Jul 2012, 01:17 PM
Hi Sheetal,

As an addition to what Lancelot said, I can mention that you can make a template document that contains merge fields and protected regions using Word or our RadRichTextBox and its UI. Afterwards, you can import the template document to our control. The unprotected text will be editable by your users.

In order to fulfill your scenario, you should read the data from Share Point, create objects having the necessary properties and set the collection of these objects as an ItemsSource to the MailMergeDataSource of the document. Finally export the document via docx format provider.

Hope this demo is close enough to your case and you can manage to test if our controls fit your development scenario. MailMerge is described in this article.


All the best,
Martin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Afshin
Top achievements
Rank 1
answered on 26 May 2013, 12:42 PM
Hi 
I have a RadRichTextBox  and a protected ms word document .When i import the document to RadrichTextBox suddenly i'ii lose all protectins .
Is there any way to solve my problem . Please tell me your solution  .
Thanks A Lot
0
Mihail
Telerik team
answered on 29 May 2013, 11:24 AM
Hello Afshin,

As we do not know what is the problem with your document the only thing we can offer is to open a support ticket and attach the document in question so we can investigate the case further.

Regards,
Mihail
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Sheetal
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Martin Ivanov
Telerik team
Afshin
Top achievements
Rank 1
Mihail
Telerik team
Share this question
or