DocxFormatProvider not Loading the .docx file properly into the RadRichTextBox.

3 posts, 0 answers
  1. Mastan Narravula
    Mastan Narravula avatar
    2 posts
    Member since:
    Jun 2011

    Posted 03 Feb 2013 Link to this post

    Actually My Word Document consists of Content Following with Title of Word Document as Shown in the Attachment(OriginalWordDocument) but when i was loading that word document using DocxFormatProvider in the radrichtextbox the page was not showing as in the Word Document.Hence it was taking complete 1st  section of the document for Image(Title of the Word Document).

    My requirement : -
    1) After the image the the content of the RadRichTextBox should be placed,how can i acheive this.

    Note : - For only some .docx files only this kind of scenarion is Coming.

    pls help me
  2. Mihail
    Mihail avatar
    268 posts

    Posted 04 Feb 2013 Link to this post

    Hello Mastan,

    One of the possible reasons for this layout of the text is that there is a section break of type Continuous in the docx document. This is a valid option according to the Open XML specification, but is not supported by RadRichTextBox. For a list of supported section-break types you can refer to this article.

    If this is not the case with your document, the difference in the layout may be due to some other unsupported feature or a bug. As the specification is rather vast and our clients usually have a wider document reach, we have adopted the habit of looking into import issues once a sample document is submitted through the support ticketing system. Therefore, if you would like us to further investigate the problem, please open a support ticket and attach a document illustrating the issue.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Mastan Narravula
    Mastan Narravula avatar
    2 posts
    Member since:
    Jun 2011

    Posted 05 Feb 2013 Link to this post

    hi Mihail, thanq for your reply...

    I achieved my requirement (getting the whole content of a word document in a RadRichTextBox as shown in the Word Document(misplacement of word(.docx) content problem occurs rarely for some sort of documents, i don't know why that is coming but i adjusted that)) by removing the empty spans present in the RadRichTextBox and i got the result as shown in the (Original Document).

    And i adjusted title image of my word to center of the document by using bookmarks(i kept a bookmark to the image, and by finding the pixel position of that image i kept a button width to that pixel position and make that buttons visibility to collapsed) then i got the titleimage to center of the document as shown in the (Original Document) that i attached.

    Mastan Narravula.
Back to Top