Problem with Import?

2 posts, 0 answers
  1. Edward
    Edward avatar
    6 posts
    Member since:
    Jan 2012

    Posted 07 Feb 2012 Link to this post

    Using the following code to import word documents from a web service which delivers a file on the server:

            private static RadDocument GetDocumentFromDocx(byte[] docx)
                RadDocument result;
                if (docx == null || docx.Length == 0)
                    result = new RadDocument();
                    IDocumentFormatProvider provider = new DocxFormatProvider();
                    result = provider.Import(docx);
                return result;

    Everything works fine, but when I directly open up the file and edit it and save and then import (above), everything is underlined.  So then I have to select all and un-underline it from the radrichtextbox, to save.  Then it's Ok.  When I open up the saved file in M. Word, it is not underlined.

    Using silverlight controls installation from 2011 3rd quarter (not the latest).



  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 07 Feb 2012 Link to this post

    Hello Edward,

    There was a similar issue with the docx import around the 2011 Q3 release. It has been fixed in an internal build soon after it was discovered.

    Unfortunately, the only solution to the problem would be to upgrade to a later version of the controls, such as the 2011.Q3.SP1 (2011.3.1220). The only other workaround would be to remove the underline from the entire document, which is what you are currently doing.

    You can try opening the docx documents in the online demo, which uses 2011.Q3.SP1 in order to verify that the issue has indeed been resolved.

    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top