-
Nov 30th, 2010, 08:18 AM
#1
Thread Starter
Member
[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.
-
Nov 30th, 2010, 08:51 AM
#2
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.
-
Nov 30th, 2010, 09:35 AM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|