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

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

2 Answers 212 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Mastan Narravula
Top achievements
Rank 1
Mastan Narravula asked on 03 Feb 2013, 09:25 AM
Hi 
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
Thanks.

2 Answers, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 04 Feb 2013, 01:08 PM
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,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mastan Narravula
Top achievements
Rank 1
answered on 05 Feb 2013, 01:10 PM
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.
.
Thanks,

Mastan Narravula.
Tags
RichTextBox
Asked by
Mastan Narravula
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Mastan Narravula
Top achievements
Rank 1
Share this question
or