Click here to Skip to main content
15,997,667 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to save richtextbox to html format
Posted
Updated 23-Aug-13 4:10am
v2
Comments
[no name] 23-Aug-13 10:16am    
What is it that you think an "html format" file is?
kave2011 23-Aug-13 10:21am    
in normally
richtextbox1.SaveFile(path)
That is saved rtf file
I want a method or solution for to save html file from richtextbox
[no name] 23-Aug-13 10:32am    
Did you bother reading documentation? http://msdn.microsoft.com/en-us/library/e4a710b1.aspx
kave2011 23-Aug-13 10:52am    
I want content of saved file like below
<html>
.....
</html>
not only its extension
[no name] 23-Aug-13 11:08am    
That is not what you asked was it? RichTextBox != HTML editor. You have to do that work yourself. Or use a real HTML editor.

 
Share this answer
 
The RichTextBox has not idea what an HTML file is or how to save its content to one. You need to use some kind of external conversion tool or library in your code to convert the RTF file to HTML. The RichTextBox will not do it for you.

Start reading these[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900