Saving the richtext content to html file?

I’m trying to save the content of richtext as html file. I used the code "save File as " in the demo to do that but it does not work. it is still save it as text file.
any idea to make it works.

Thanks in advance.

Did you look at the documentation at all? The SaveFile method accepts a
"file type" parameter. RICHTEXT_TYPE_HTML should do what you want.

Indeed, the function immediately after OnFileSaveAs in the demo is
OnFileViewHTML, which shows one way to get the body of the control as an
HTML string.

···

a.m.n.alsubhi@gmail.com wrote:

I'm trying to save the content of richtext as html file. I used the
code "save File as " in the demo to do that but it does not work. it
is still save it as text file.
any idea to make it works.

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.