2 posts, 0 answers
  1. Sachin
    Sachin avatar
    6 posts
    Member since:
    Sep 2014

    Posted 11 Feb Link to this post

    Hello team,

    I am using Rad Editor and using export to word as shown in your demo.I want to modify few things :-

    I have created the button in which i have used RadEditor1.ExportToDocx()

     I want that when i click the button i want that the file should save with the name as defined by me (customized name) and also how to export the editor content to the existing word file(append the new content to the existing content in word file).

     I want to save the exported file to different file location. How would i set the location path to save the exported file.

     Thanks for the Reply in Advance.

  2. Ianko
    Ianko avatar
    1507 posts

    Posted 16 Feb Link to this post

    Hi Alok,

    You can set you own file name by using the ExportSettings-FileName property:
    <telerik:RadEditor runat="server" ID="RadEditor1" ContentFilters="PdfExportFilter, DefaultFilters">
        <ExportSettings FileName="MyFileName">


    RadEditor1.ExportSettings.FileName = "MyFileName";

    As for saving appending the content to an already existing file, this is not possible with the built-in mechanism. However, you can use RadWordsProcessing to build-up your own solution for that:
    1. Handle the ExportContent event to capture the content and initiate your logic;
    2. Use RadWordsProcessing to read an MS Word file — http://docs.telerik.com/devtools/aspnet-ajax/controls/wordsprocessing/formats-and-conversion/docx/docxformatprovider#import;
    3. Import the output from RadEditor's ExportContent event and append it to the generated RadFlowDocument from step 1;
    4. Export all the content to the same Word file (you might need to programmatically delete it first). 


    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top