How to apply a word template to RadRichTextBox in Silverlight.

5 posts, 0 answers
  1. Sheetal
    Sheetal avatar
    3 posts
    Member since:
    Jul 2012

    Posted 18 Jul 2012 Link to this post

    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
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 18 Jul 2012 Link to this post

    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
  3. DevCraft banner
  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    104 posts

    Posted 20 Jul 2012 Link to this post

    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.

  5. Afshin
    Afshin avatar
    1 posts
    Member since:
    May 2013

    Posted 26 May 2013 Link to this post

    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
  6. Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 29 May 2013 Link to this post

    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.

Back to Top
DevCraft banner