Rad Editor - MS Word-like Experience

7 posts, 0 answers
  1. ismail
    ismail avatar
    4 posts
    Member since:
    May 2015

    Posted 31 May Link to this post

    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;

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 31 May Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ismail
    ismail avatar
    4 posts
    Member since:
    May 2015

    Posted 31 May in reply to Vessy Link to this post

    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

  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 31 May Link to this post

    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.
  6. ismail
    ismail avatar
    4 posts
    Member since:
    May 2015

    Posted 31 May in reply to Vessy Link to this post

    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.

  7. ismail
    ismail avatar
    4 posts
    Member since:
    May 2015

    Posted 01 Jun in reply to ismail Link to this post

    any update on this please ?
  8. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 03 Jun Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017