Answered by:
RTF to HTML format

Question
-
I need to Convert a RichTextBox contents to HTML format, is any way to convert RTF to HTML format?Monday, December 31, 2012 11:31 AM
Answers
-
Hi,
It needs some codes for format converting. I found a sample codes in C#, we can create a component to do this, include to C++ project or write it with C++
http://code.msdn.microsoft.com/windowsapps/RTF-TO-HTML-in-Metro-Style-08646375Best regards,
JesseJesse Jiang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Jesse Jiang Monday, January 7, 2013 5:56 AM
Wednesday, January 2, 2013 3:00 AM -
In WPF, you can use TextRange class to help conversion. Here is sample code Converting between RTF and HTML
But TextRange class is not available in Windows Store apps.
You can try to use ITextDocument and ITextRange interface in Windows.UI.Text namespace to customize conversion logic among different formats.
Athough Writing Your Own RTF Converter is not specific for Windows Store apps, the common logic is also helpful for you to implement conversion code.
Robin [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Jesse Jiang Monday, January 7, 2013 5:55 AM
Wednesday, January 2, 2013 3:09 AMModerator
All replies
-
Hi,
It needs some codes for format converting. I found a sample codes in C#, we can create a component to do this, include to C++ project or write it with C++
http://code.msdn.microsoft.com/windowsapps/RTF-TO-HTML-in-Metro-Style-08646375Best regards,
JesseJesse Jiang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Jesse Jiang Monday, January 7, 2013 5:56 AM
Wednesday, January 2, 2013 3:00 AM -
In WPF, you can use TextRange class to help conversion. Here is sample code Converting between RTF and HTML
But TextRange class is not available in Windows Store apps.
You can try to use ITextDocument and ITextRange interface in Windows.UI.Text namespace to customize conversion logic among different formats.
Athough Writing Your Own RTF Converter is not specific for Windows Store apps, the common logic is also helpful for you to implement conversion code.
Robin [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marked as answer by Jesse Jiang Monday, January 7, 2013 5:55 AM
Wednesday, January 2, 2013 3:09 AMModerator