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

convert file path to stream

2 Answers 20 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Mattiullah
Top achievements
Rank 1
Mattiullah asked on 18 Mar 2016, 07:54 PM

am facing a problem in richtext box 

 

i want to load data through  "D:\file.ext" but it shows me error 

string cannot convert to stream or byte

2 Answers, 1 is accepted

Sort by
0
Mattiullah
Top achievements
Rank 1
answered on 20 Mar 2016, 01:01 AM
anyone help me
0
Tanya
Telerik team
answered on 21 Mar 2016, 09:52 AM
Hello Mattiullah,

In order to import a document in RadRichTextBox, you will need to pass either string(representing the document in the specific format), byte array(when working with the DOCX format) or the stream containing the file.

More information and examples of how this could be achieved are available in the Import/Export section in our documentation.

Hope this helps. 

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
RichTextBox
Asked by
Mattiullah
Top achievements
Rank 1
Answers by
Mattiullah
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or