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
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
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
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
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.
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