Export to RTF splits words

8 posts, 0 answers
  1. Laura
    Laura avatar
    6 posts
    Member since:
    Jan 2014

    Posted 31 Jul 2014 Link to this post

    I was testing the RadEditor demo you have here

    http://demos.telerik.com/aspnet-ajax/editor/examples/rtfexport/defaultcs.aspx

    I exported the content from your demo (no changes on my side).
    The document created has the line breaks in wrong places, words at the end of the lines are getting split.
    Is this a known issue?
    I tested it with :
    - Google Chorome Version 36.0.1985.125
    - IE 11

    I tried to attach to this post a doc that has 2KB and I get the message:
    The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .gif, .jpg, .jpeg, .png).
  2. Laura
    Laura avatar
    6 posts
    Member since:
    Jan 2014

    Posted 31 Jul 2014 in reply to Laura Link to this post

    See the created doc as a image
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Laura
    Laura avatar
    6 posts
    Member since:
    Jan 2014

    Posted 31 Jul 2014 in reply to Laura Link to this post

    Please respond ASAP
  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 01 Aug 2014 Link to this post

    Hi Laura,

    The described behavior is encountered due to incompatibilities of the RTF document opened in MS Word 2013.

    When MS Word is opened in compatibility mode (when RTF document is being opened) the word breaking feature does not work correctly.

    Using the built-in export of the RadEditor control cannot somehow manipulate this functionality. This entirely depends on the desktop word processor and the exporting functionality cannot configure this matter.

    For such cases I would recommend exporting to DOCX document, but this is still not available as a built-in option in the RadEditor control.

    A possible way to allow users to export to DOCX is to upgrade to 2014 Q2 version with which the Telerik UI for ASP.NET AJAX comes with the Document Processing Library with which a custom exporting functionality can be implemented. More about this matter is available in this help article and this Code Library that provides a simple project with the Document Processing Library integrated with the RadEditor control.
     
    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Laura
    Laura avatar
    6 posts
    Member since:
    Jan 2014

    Posted 04 Aug 2014 in reply to Ianko Link to this post

    Thank you for the instructions and links.
    I have implemented the export to Docx based on the instructions.

    I noticed that the lists from Rad Editor are losing the format.
    This is the HTML from Rad Editor:
    <ul>
        <li>List item1</li>
        <li>List Item 2</li>
        <li>List Item 3</li>
    </ul>
    <p>&nbsp;</p>

    I am attaching here the way it looks in Rad Editor and the way it looks in the Word file after export.
    Please let me know how I can fix this issue.

  7. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 05 Aug 2014 Link to this post

    Hi Laura,

    Exporting and Importing lists from/to Word document using the Telerik Document Processing library is not still supported and such content is exported as plain text only.

    This matter is logged as a bug report in the WPF's feedback portal and you can following this logged feedback portal item to track updates on the matter.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Laura
    Laura avatar
    6 posts
    Member since:
    Jan 2014

    Posted 05 Aug 2014 in reply to Ianko Link to this post

    Hi Ianko,

    Thank you for the prompt response!
    I did an workaround: after getting the content of the Rad Editor in DocxExportTemplate class,  I replace the HTML markup for the list with HTML markup for Table so that the list items in the Word doc look better.

    Is there any plan for fixing this issue in the next release?

    What other known issues are with this Import/Export to DocX?

    Thank you!
  9. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 06 Aug 2014 Link to this post

    Hi Laura,

    I am glad that you have been able to workaround this behavior and achieve a more satisfying result. 

    The mentioned improvement is more related to the Telerik Document Processing library, which has been recently announced in the public and still is a fresh product that needs improvement.

    Currently the dev team is working on multitude of tasks related to the Import/Export functionality of the library and due to that I am enable to firmly estimate a time frame for which they could be able to resolve the list exporting functionality.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017