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

Problem with Import?

1 Answer 70 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 07 Feb 2012, 07:35 PM
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();
            }
            else
            {
                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).

 

 

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 07 Feb 2012, 08:59 PM
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.

Greetings,
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 >>
Tags
RichTextBox
Asked by
Edward
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or