A RichTextBox contains RTF code. It is a completely different format to HTML. Have a look at the controls Rtf property to see what it contains. To the best of my knowledge there is no in-built functionality in the Framework to convert from one to the other. You'll need to either parse the RTF text yourself and write out the equivalent HTML or find a third-party tool that will do it for you.
Thanks guys,
I need the process to be seamless so saving out to a file and using word is not an option. Does anyone know of a good 3rd party app that can do the conversion?
If you mean by seamless that user will never know, you're right because it will be a requirement that also Word is installed, but running the automation itself will not be visible to user.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.