convert file path to stream

3 posts, 0 answers
  1. Mattiullah
    Mattiullah avatar
    5 posts
    Member since:
    Jul 2014

    Posted 18 Mar 2016 Link to this post

    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. Mattiullah
    Mattiullah avatar
    5 posts
    Member since:
    Jul 2014

    Posted 19 Mar 2016 in reply to Mattiullah Link to this post

    anyone help me
  3. Tanya
    Admin
    Tanya avatar
    531 posts

    Posted 21 Mar 2016 Link to this post

    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.
Back to Top