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

how to display byte array in terlik table paragraph?

1 Answer 71 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Juber
Top achievements
Rank 1
Juber asked on 11 Oct 2013, 06:09 AM
I have byte array data in which it contains text and images.
Now i want to show that byte array into table paragraph.
I tired it with InlineImage  by converting byte array to stream but its not working

is there any option to show such a byte array containing of image and text together?

Thanx in advance

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 15 Oct 2013, 03:46 PM
Hello,

Thank you for contacting us!

RadRichTextBox provides several format providers that allow you to export/import the content of the control. That said if the byte array you are referring to is for example a DOCX document, you could import it using the respective format provider.

In case this is not what you are trying to achieve and the byte array simply contains the image and the text, you should still be able to achieve the desired result though we do not provide a way to do this out of the box. As long as you can distinguish the data you could create an InlineImage from its image part and import the rest with TxtFormatProvider. The imported document can be converted to DocumentFragment and simply inserted at the document position you wish it to.

I hope this is helpful! Let us know if you have other questions.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
Juber
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or