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

Export to RTF splits words

7 Answers 21 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 31 Jul 2014, 04:32 PM
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).

7 Answers, 1 is accepted

Sort by
0
Laura
Top achievements
Rank 1
answered on 31 Jul 2014, 04:35 PM
See the created doc as a image
0
Laura
Top achievements
Rank 1
answered on 31 Jul 2014, 06:15 PM
Please respond ASAP
0
Ianko
Telerik team
answered on 01 Aug 2014, 11:31 AM
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.

 
0
Laura
Top achievements
Rank 1
answered on 04 Aug 2014, 05:18 PM
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.
‚Äč
0
Ianko
Telerik team
answered on 05 Aug 2014, 09:59 AM
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.

 
0
Laura
Top achievements
Rank 1
answered on 05 Aug 2014, 03:23 PM
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!
0
Ianko
Telerik team
answered on 06 Aug 2014, 05:40 AM
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.

 
Tags
Editor
Asked by
Laura
Top achievements
Rank 1
Answers by
Laura
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or