Results 1 to 3 of 3

Thread: [RESOLVED] RTB to WebBrowser (without save file)

Hybrid View

  1. #1

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Resolved [RESOLVED] RTB to WebBrowser (without save file)

    Is there anyway I can get a web browser to open / render the text of a RTB without saving the file? I don't want to save it because it contains sensitive data.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: RTB to WebBrowser (without save file)

    You can assign directly to the DocumentText of the WebBrowser. You won't be able to transfer formatting though, because RTF and HTML are two very different things and, as far as I'm aware, the WebBrowser doesn't support RTF. You'd have to either get the Text property of the RichTextBox to get just the plain text or else get the Rtf property and find some RTF-to-HTML converter to process it.

  3. #3

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Re: RTB to WebBrowser (without save file)

    Uhh, forget that it's an RTB, I am just using plain text w/ HTML code in it. But you resolved this for me:
    WebBrowser1.DocumentText = rtbCode.Text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width