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

Rad Editor - MS Word-like Experience

6 Answers 365 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
ismail
Top achievements
Rank 1
ismail asked on 31 May 2016, 11:00 AM

Hi All,

Appearently, .doc upload on Editor - MS Word-like Experience, does not work properly. 

Although it was defined to use LoadDocxContent, I'm getting error while trying to upload. Could you please help ? .docx documents work fine on async. upload.

case ".doc":
case ".docx":
   RadEditor1.LoadDocxContent(e.File.InputStream);
   break;

6 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 31 May 2016, 02:04 PM
Hi ismail,

Can you test importing the problematic DOCX document to the following online demo and see whether the same behavior is observed? - https://demos.telerik.com/aspnet-ajax/editor/examples/import-export/docx-import-export/defaultcs.aspx


I am asking you that as currently not all of the MS Word document features can be properly converted to HTML markup. You can find in this help article a list of all support HTML elements for conversion—http://docs.telerik.com/devtools/aspnet-ajax/controls/wordsprocessing/formats-and-conversion/html/supported-elements. In CONSULTANT SERVICE AGREEMENT.docx file, there are some elements that merely cannot be re-presented as HTML, thus, causing RadWordsProcessing to fail converting the content.

I hope this information will be helpful for you.

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
ismail
Top achievements
Rank 1
answered on 31 May 2016, 02:13 PM

Thanks for the answer Vessy.

I'm testing this by using the same document saved both on .doc and .docx extensions. It has a simple table and text in it as you can see from the attached image. 

.docx one uploads successfully but I get an error "There was an error during the import operation. Try simplifying the content." on the page I mentioned on my first post.

And the error on debug level is "The Document Processing Library fails to convert the input file stream to RadFlowDocument"

But it's just a simple doc document.

 

Thanks,

Ismail

0
Vessy
Telerik team
answered on 31 May 2016, 02:36 PM
Hi ismail,

I tested similar to the described scenario on my side, but the content of the file is imported properly with me, without any exceptions thrown. I cam attaching my test file to this reply - are you experiencing the same problem with it?

Regards,
Vessy
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
ismail
Top achievements
Rank 1
answered on 31 May 2016, 02:46 PM

I think you misunderstood me. Could you please save your document as Word 97-2003 (.doc) format and try uploading this .doc file? 

This is the one I'm having trouble with.

0
ismail
Top achievements
Rank 1
answered on 01 Jun 2016, 11:35 AM
any update on this please ?
0
Ianko
Telerik team
answered on 03 Jun 2016, 11:23 AM
Hello Ismail,

I am afraid importing content saved with Word 97-2003 option is not a supported option for RadEditor. 

Behind the scenes, RadWordsProcessing is incorporated, which supports Office Open XML. As you can see this is the format provided by Microsoft Office 2007 and backward compatibility is not supported. 

I suspect the available option to upload DOC files has led to confusion that Word 97-2003 format is supported. I will log a task to consider removing this option to prevent future confusion on the same topic.

Regards,
Ianko
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Documentation and Tutorials
Asked by
ismail
Top achievements
Rank 1
Answers by
Vessy
Telerik team
ismail
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or