jenx222

Im trying to create web pages using the RTB but evry time i save the contents of the RTB as a html file it shows this code ({\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 \par \par \par \par \par \par \par \par \par \par \par \par }) does eny one know how to correct this



Re: Visual Basic Express Edition html using the RTB

jenx222

Im trying to create web pages using the RTB,i save the contents of the rich text box as a html file but it when i preview it, it shows a code instead of the text and pictures i put init, does eny 1 know how to get it to work



Re: Visual Basic Express Edition html using the RTB

SJWhiteley

You can't just change the file name extension and expect it to work.

The rich text box (save method) saves text as rich text: a completely different format to HTML. You want an HTML editor of some kind, or you will have to parse the contents of your rich text box and manually create HTML from that.






Re: Visual Basic Express Edition html using the RTB

ReneeC

 

That's because the rich text box's output is rich text and not HTML. You have the wrong control.

If you want to make an html editor use the WebBrowser control. It's output is HTML.

The problem is best corrected by using the correct control.  Get HTML from the webbrowser.document property.






Re: Visual Basic Express Edition html using the RTB

jenx222

ok, thanks