How to Import And Export in DocxFormatProvider?

2 posts, 0 answers
  1. vahid
    vahid avatar
    4 posts
    Member since:
    Sep 2014

    Posted 20 Sep 2014 Link to this post

    public byte[] GetMeDocumentByteArray()
                if (DocViewer.Document != null)
                    IDocumentFormatProvider provider = new DocxFormatProvider();
                    byte[] data = provider.Export(DocViewer.Document);
                    return data;
                    return null;

            public void LoadDocument(RadRichTextBox rd, byte[] MyDocument)

                if (MyDocument != null)

                        IDocumentFormatProvider provider = new DocxFormatProvider();
                        RadDocument Doc = provider.Import(MyDocument);
                        rd.Document = Doc;
                    catch (Exception ex)
                        PPDialogMessage message = new PPDialogMessage();

    I use this above code.But when Use Export Method,Not load Style And Format such as(Font,size,Color,...)!!!!!!!!
    Please Help me
    thank so Much
  2. Petya
    Petya avatar
    973 posts

    Posted 24 Sep 2014 Link to this post

    Hi Vahid,

    It's hard to say what might be causing this based on the provided information. We would appreciate it if you send us the original document, so that we can look into the cause of the behavior.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top